From acaac10219a213590694152f201e57e902f28d7d Mon Sep 17 00:00:00 2001 From: Malfurious Date: Mon, 13 Jul 2020 02:17:54 -0400 Subject: Add version number to help output --- Compass.h | 2 ++ Help.cpp | 4 ++++ 2 files changed, 6 insertions(+) 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; } -- cgit v1.2.3