#include "log/Logger.h"
#include <string>
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
◆ 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
84
85 VLOG(1) <<
"Filename: " << filename;
86
87
88
89 subApp->required();
90 filenameOpt->required();
91
92 CLI11_PARSE(app, argc, argv)
93
94 return 0;
95}
References logger::LogMessage::LogMessage().