std::vector< std::string > _arguments
All command line arguments except the program name (argv[0])
AdditionalArgs _additionalArgs
Additional command line arguments.
std::string _programName
The program name.
ParseResult parse(int argc, char **argv)
Parse the command line.
CmdLineParser()=default
Default constructor.
~CmdLineParser()=default
Default destructor.
unsigned int _nthreads
The number of threads.
void setOptionalArgs(bool opt=true)
Set all cmd line arguments to optional during parsing.
std::map< std::string, std::string > AdditionalArgs
std::vector< std::string > getStandardOptions() const
Get all possible command options (short and long options)
bool _dumpExample
Whether to dump an example configuration and exit.
std::optional< std::string > _config
The config argument.
ParseResult struct. The result of the command line parsing.
bool _optionalArgs
Whether all arguments are optional.
CmdLineParser class Does the main command line parsing for MarlinMT.