DebugServer2
Loading...
Searching...
No Matches
ds2::OptParse Class Reference

Public Types

enum  OptionType { boolOption , stringOption , vectorOption }
 

Public Member Functions

void addOption (OptionType type, std::string const &name, char shortName, std::string const &help=std::string(), bool hidden=false)
 
void addPositional (std::string const &name, std::string const &help=std::string(), bool hidden=false)
 
int parse (int argc, char **argv)
 
bool getBool (std::string const &name) const
 
std::string const & getString (std::string const &name) const
 
std::vector< std::string > const & getVector (std::string const &name) const
 
std::string const & getPositional (std::string const &name) const
 
void usageDie (char const *format=nullptr,...)
 

The documentation for this class was generated from the following files: