Skip to content

Commit

Permalink
Add app version
Browse files Browse the repository at this point in the history
  • Loading branch information
navrocky committed Apr 4, 2024
1 parent f07913f commit 9fba850
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<CommandPtr>;

void regCommands(const Commands& commands, CmdLine& cmdLine)
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9fba850

Please sign in to comment.