19#include "StringTools.hpp"
32enum class AppFormatMode {
61 std::map<std::string, std::string>
labels_{};
78 virtual std::string
make_help(
const App *, std::string, AppFormatMode)
const = 0;
85 void label(std::string key, std::string val) {
labels_[key] = val; }
104 CLI11_NODISCARD std::string
get_label(std::string key)
const {
127 using funct_t = std::function<std::string(
const App *, std::string, AppFormatMode)>;
140 std::string
make_help(
const App *app, std::string name, AppFormatMode mode)
const override {
141 return lambda_(app, name, mode);
160 CLI11_NODISCARD
virtual std::string
161 make_group(std::string group,
bool is_positional, std::vector<const Option *> opts)
const;
167 std::string
make_groups(
const App *app, AppFormatMode mode)
const;
176 virtual std::string
make_expanded(
const App *sub, AppFormatMode mode)
const;
185 virtual std::string
make_usage(
const App *app, std::string name)
const;
188 std::string
make_help(
const App *app, std::string, AppFormatMode mode)
const override;
Creates a command line program, with very few defaults.
Definition App.hpp:90
Definition Option.hpp:231