Template Struct CLIConfig¶
Defined in File parser.h
Struct Documentation¶
-
template<class
Service
>
structCLIConfig
¶ Public Types
-
template<>
usingServiceConfig
= typename Service::Config¶
-
template<>
usingModelConfigPaths
= std::vector<std::string>¶
Public Static Functions
-
template<class
App
>
static voidaddOptions
(App &app, CLIConfig<Service> &config, bool multiOpMode = false)¶ All config in bergamot has the following templated addOptions(…) method hierarchically placing parse actions on “option-groups” in nested structs.
This allows to keep additional documentation and information on defaults alongside. Since this is templated with App, we don’t add a CLI11 dependency in any configs, thus CLI11 not coming into the picture until the parser is instantiated.
-
template<>