108    std::unique_ptr<std::unordered_map<std::string, std::any>> positionalArgs;
 
  109    std::unique_ptr<std::unordered_map<std::string, std::any>> optionalArgs;
 
  110    std::unique_ptr<std::unordered_set<std::string>> flagArgs;
 
 
Builder for CliContext objects, allowing to incrementally add arguments before constructing the final...
Definition context_builder.h:33
ContextBuilder & addPositionalArgument(const std::string &argName, std::any &val)
Add a positional argument to the context being built.
Definition context_builder.cpp:32
ContextBuilder & addFlagArgument(const std::string &argName)
Add a flag argument to the context being built.
Definition context_builder.cpp:114
ContextBuilder & addOptionArgument(const std::string &argName, std::any &val)
Add an optional argument to the context being built.
Definition context_builder.cpp:73
std::unique_ptr< CliContext > build(cli::logging::AbstractLogger &logger)
Builds the final CliContext object from the accumulated arguments.
Definition context_builder.cpp:135
ContextBuilder()
Constructs a new ContextBuilder instance.
Definition context_builder.cpp:25
bool isArgPresent(const std::string &argName) const
Checks if an argument with the given name is present in the context being built.
Definition context_builder.cpp:129
ContextBuilder & addRepeatableOptionArgument(const std::string &argName, const std::vector< std::any > &vals)
Add a repeatable optional argument to the context being built.
Definition context_builder.cpp:87
ContextBuilder & addRepeatablePositionalArgument(const std::string &argName, const std::vector< std::any > &vals)
Add a repeatable positional argument to the context being built.
Definition context_builder.cpp:46