summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2020-07-13 02:17:54 -0400
committerMalfurious <m@lfurio.us>2020-07-13 02:17:54 -0400
commitacaac10219a213590694152f201e57e902f28d7d (patch)
tree6014c87d9fbd76754eb8a313ba556e6c67f620f8
parent74ebac726bb5adb6eb82844d3d88ed7d46962fc8 (diff)
downloadcompass-acaac10219a213590694152f201e57e902f28d7d.tar.gz
compass-acaac10219a213590694152f201e57e902f28d7d.zip
Add version number to help output
-rw-r--r--Compass.h2
-rw-r--r--Help.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/Compass.h b/Compass.h
index 1cb9dcd..5ef22f0 100644
--- a/Compass.h
+++ b/Compass.h
@@ -16,6 +16,8 @@
#include "Cryptor.h"
#include "Help.h"
+#define COMPASS_VERSION "v0.1"
+
#define ALLOW_WALK 0
#define SECONDS_PSWD_CLEANUP 30
#define CLEAN_STRING "compass-cleared"
diff --git a/Help.cpp b/Help.cpp
index e774638..a8739be 100644
--- a/Help.cpp
+++ b/Help.cpp
@@ -1,4 +1,5 @@
#include "Help.h"
+#include "Compass.h"
Help::Help() {
std::cout << " ______ ____ ___ __________" << std::endl;
@@ -8,6 +9,9 @@ Help::Help() {
std::cout << "\\____/\\____/_/ /_/ /_/_/ /_/ |_/____/____/ " << std::endl;
std::cout << std::endl;
+ std::cout << " " << COMPASS_VERSION << std::endl;
+ std::cout << std::endl;
+
std::cout << " Minimal::Documentation" << std::endl;
std::cout << std::endl;
}