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#ifndef UTILS_FORMATER_H
43#define UTILS_FORMATER_H
45#ifndef DOXYGEN_SHOULD_SKIP_THIS
48#pragma GCC diagnostic push
49#pragma GCC diagnostic ignored "-Wfloat-equal"
51#if __has_warning
("-Wweak-vtables")
52#pragma GCC diagnostic ignored "-Wweak-vtables"
54#if __has_warning
("-Wcovered-switch-default")
55#pragma GCC diagnostic ignored "-Wcovered-switch-default"
57#if __has_warning
("-Wmissing-noreturn")
58#pragma GCC diagnostic ignored "-Wmissing-noreturn"
60#if __has_warning
("-Wnrvo")
61#pragma GCC diagnostic ignored "-Wnrvo"
65#include "utils/CLI11.hpp"
67#pragma GCC diagnostic pop
85 std::string
to_config(
const App* app,
bool default_also,
bool write_description, std::string prefix)
const override;
89#ifndef CLI11_ORIGINAL_FORMATTER
93 label(
"SUBCOMMAND",
"INSTANCE");
94 label(
"SUBCOMMANDS",
"INSTANCES");
95 label(
"PERSISTENT",
"");
96 label(
"Persistent Options",
"Options (persistent)");
97 label(
"Nonpersistent Options",
"Options (nonpersistent)");
98 label(
"Usage",
"\nUsage");
99 label(
"bool:{true,false}",
"{true,false}");
100 label(
":{true,false)",
"{true,false}");
101 label(
":{standard,active,complete,required}",
"{standard,active,complete,required}");
102 label(
":{standard,exact,expanded}",
"{standard,exact,expanded}");
108 std::string
make_group(std::string group,
bool is_positional, std::vector<
const Option*> opts)
const override;
110 std::string
make_usage(
const App* app, std::string name)
const override;
111 std::string
make_footer(
const App* app)
const override;
112 std::string
make_subcommands(
const App* app, AppFormatMode mode)
const override;
114 std::string
make_expanded(
const App* sub, AppFormatMode mode)
const override;
std::string operator+(const std::string &string, const Code &code)