1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00

update version info

This commit is contained in:
Lars Melchior 2020-06-03 15:03:09 +02:00
parent b3551d686f
commit 47f89bf102

View file

@ -21,7 +21,7 @@ int main(int argc, char** argv) {
// clang-format off
options.add_options()
("h,help", "Show help")
("v,version", "Print the current version")
("v,version", "Print the current version number")
("n,name", "Name to greet", cxxopts::value(name)->default_value("World"))
("l,lang", "Language code to use", cxxopts::value(language)->default_value("en"))
;
@ -33,7 +33,7 @@ int main(int argc, char** argv) {
std::cout << options.help() << std::endl;
return 0;
} else if (result["version"].as<bool>()) {
std::cout << "Greeter " << GREETER_VERSION << std::endl;
std::cout << "Greeter, version " << GREETER_VERSION << std::endl;
return 0;
}