It is possible to bind arguments to a variable storing their value, as an alternative to explicitly calling program.get<T>(arg_name) or program[arg_name]
This is currently implementeted for variables of type bool (this also implicitly calls flag()), int, double, std::string and std::vector<std::string>. If the argument is not specified in the command line, the default value (if set) is set into the variable.
It is possible to bind arguments to a variable storing their value, as an alternative to explicitly calling
program.get<T>(arg_name)
orprogram[arg_name]
This is currently implementeted for variables of type
bool
(this also implicitly callsflag()
),int
,double
,std::string
andstd::vector<std::string>
. If the argument is not specified in the command line, the default value (if set) is set into the variable.