2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#include "log/Logger.h"
44#ifndef DOXYGEN_SHOULD_SKIP_THIS
47#pragma GCC diagnostic push
48#pragma GCC diagnostic ignored "-Wfloat-equal"
50#if __has_warning
("-Wweak-vtables")
51#pragma GCC diagnostic ignored "-Wweak-vtables"
53#if __has_warning
("-Wcovered-switch-default")
54#pragma GCC diagnostic ignored "-Wcovered-switch-default"
58#include "utils/CLI11.hpp"
60#pragma GCC diagnostic pop
67int main(
int argc,
char* argv[]) {
68 CLI::App app(
"ConfigTest");
70 CLI::Option* allHelpOpt = app.set_help_all_flag(
"--help-all",
"Expand all help");
71 allHelpOpt->configurable(
false);
73 CLI::App* subApp = app.add_subcommand(
"test",
"Test SubCommand");
76 CLI::Option* filenameOpt = subApp->add_option(
"-f", filename,
"A Filename");
79 VLOG(1) <<
"Filename: " << filename;
84 filenameOpt->required();
86 CLI11_PARSE(app, argc, argv)
int main(int argc, char *argv[])