51 LOGGER( testlog,
"test_app_with_subcommands" );
62 t_sc_get->
callback([
this]() { this->
get(); } );
65 t_sc_set->
callback([&an_app,
this]() { this->
set( an_app ); } );
90 int main(
int argc,
char **argv )
int main(int argc, char **argv)
LOGGER(testlog, "test_app_with_subcommands")
App * require_subcommand()
The argumentless form of require subcommand requires 1 or more subcommands.
Contains the logger class and macros, based on Kasper's KLogger class.
App * callback(std::function< void()> app_callback)
Creates a command line program, with very few defaults.
#define CLI11_PARSE(app, argc, argv)
void setup_subcommands(main_app &an_app)
Primary application class.
App * fallthrough(bool value=true)
App * add_subcommand(std::string subcommand_name="", std::string subcommand_description="")
Add a subcommand. Inherits INHERITABLE and OptionDefaults, and help flag.