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 67 of file configtest.cpp.

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