Skip to content
Snippets Groups Projects
Commit 8ffd5f3d authored by Martin Wölzer's avatar Martin Wölzer
Browse files

sub_parser_example.cpp: added stand-alone-purpose to version option

parent 1a02a251
No related branches found
No related tags found
No related merge requests found
Pipeline #305 passed with stages
in 6 hours, 4 minutes, and 35 seconds
......@@ -33,7 +33,7 @@ class cli_parser_t : public clapp::basic_main_parser_t {
// if version is given, print_version_and_exit() is called.
clapp::bool_option_t version{
*this, "version", "Show version info",
*this, "version", "Show version info", purpose_t::stand_alone,
clapp::value::found_func_t{print_version_and_exit}};
clapp::count_option_t verbose{*this,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment