Skip to content

Commit

Permalink
Fix version printing with -v
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Sep 27, 2024
1 parent 1705587 commit eca491b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ void Main::add_supported_options() {
.action([&](const auto& a) {conf.verbosity = std::atoi(a.c_str());})
.default_value(conf.verbosity)
.help("[0-10] Verbosity of solver. 0 = only solution");
program.add_argument("--version")
program.add_argument("--version", "-v")
.action([&](const auto ) {printVersionInfo();})
.flag()
.help("Print version information");
Expand Down

0 comments on commit eca491b

Please sign in to comment.