SNode.C
Loading...
Searching...
No Matches
configtest.cpp File Reference
#include "log/Logger.h"
#include <string>
Include dependency graph for configtest.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 73 of file configtest.cpp.

73 {
74 CLI::App app("ConfigTest");
75
76 CLI::Option* allHelpOpt = app.set_help_all_flag("--help-all", "Expand all help");
77 allHelpOpt->configurable(false);
78
79 CLI::App* subApp = app.add_subcommand("test", "Test SubCommand");
80
81 std::string filename;
82 CLI::Option* filenameOpt = subApp->add_option("-f", filename, "A Filename");
83 // filenameOpt->default_val("Filenameeeeee");
84
85 VLOG(1) << "Filename: " << filename;
86
87 // app.needs(subApp);
88 // subApp->needs(filenameOpt);
89 subApp->required();
90 filenameOpt->required();
91
92 CLI11_PARSE(app, argc, argv)
93
94 return 0;
95}