From 9fba850817f2b93e4a1d9cf74d67b3651fb954d6 Mon Sep 17 00:00:00 2001 From: Vladislav Navrocky Date: Thu, 4 Apr 2024 13:39:18 +0300 Subject: [PATCH] Add app version --- cli/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/main.cpp b/cli/main.cpp index e68d897..bbc13d7 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -13,12 +13,12 @@ #include "commands/remove_command.h" #include "commands/up_command.h" +static const char* APP_VERSION = "1.0.0"; + using namespace std; using namespace Args; namespace tc = termcolor; -const char* DEFAULT_CONFIG_FILE = "~/.local/share/dcwm/config.yml"; - using Commands = vector; void regCommands(const Commands& commands, CmdLine& cmdLine) @@ -58,7 +58,7 @@ int main(int argc, char** argv) }; CmdLine cmdLine(argc, argv, CmdLine::CommandIsRequired); - cmdLine.addHelp(true, argv[0], "Docker Compose Workspace manager"); + cmdLine.addHelp(true, argv[0], format("Docker Compose Workspace manager (v{})", APP_VERSION)); regCommands(commands, cmdLine); cmdLine.parse(); processCommands(commands, cmdLine);