Rerun C++ SDK
Loading...
Searching...
No Matches
cxxopts::Options Class Reference

Public Member Functions

 Options (std::string program_name, std::string help_string="")
 
Optionspositional_help (std::string help_text)
 
Optionscustom_help (std::string help_text)
 
Optionsshow_positional_help ()
 
Optionsallow_unrecognised_options ()
 
Optionsset_width (std::size_t width)
 
Optionsset_tab_expansion (bool expansion=true)
 
ParseResult parse (int argc, const char *const *argv)
 
OptionAdder add_options (std::string group="")
 
void add_options (const std::string &group, std::initializer_list< Option > options)
 
void add_option (const std::string &group, const Option &option)
 
void add_option (const std::string &group, const std::string &s, const OptionNames &l, std::string desc, const std::shared_ptr< const Value > &value, std::string arg_help)
 
void add_option (const std::string &group, const std::string &short_name, const std::string &single_long_name, std::string desc, const std::shared_ptr< const Value > &value, std::string arg_help)
 
void parse_positional (std::string option)
 
void parse_positional (std::vector< std::string > options)
 
void parse_positional (std::initializer_list< std::string > options)
 
template<typename Iterator >
void parse_positional (Iterator begin, Iterator end)
 
std::string help (const std::vector< std::string > &groups={}, bool print_usage=true) const
 
std::vector< std::string > groups () const
 
const HelpGroupDetailsgroup_help (const std::string &group) const
 
const std::string & program () const
 

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