#include <cxxopts.h>
Public Member Functions | |
void | add_option (const std::string &group, const std::string &s, const std::string &l, std::string desc, std::shared_ptr< const Value > value, std::string arg_help) |
OptionAdder | add_options (std::string group="") |
Options & | allow_unrecognised_options () |
Options & | custom_help (std::string help_text) |
const HelpGroupDetails & | group_help (const std::string &group) const |
const std::vector< std::string > | groups () const |
std::string | help (const std::vector< std::string > &groups={}) const |
Options (std::string program, std::string help_string="") | |
ParseResult | parse (int &argc, char **&argv) |
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) |
Options & | positional_help (std::string help_text) |
Options & | show_positional_help () |
Private Types | |
typedef std::unordered_map< std::string, std::shared_ptr< OptionDetails > > | OptionMap |
Private Member Functions | |
void | add_one_option (const std::string &option, std::shared_ptr< OptionDetails > details) |
void | generate_all_groups_help (String &result) const |
void | generate_group_help (String &result, const std::vector< std::string > &groups) const |
String | help_one_group (const std::string &group) const |
Private Attributes | |
bool | m_allow_unrecognised |
std::string | m_custom_help |
std::map< std::string, HelpGroupDetails > | m_help |
String | m_help_string |
std::vector< std::string >::iterator | m_next_positional |
std::shared_ptr< OptionMap > | m_options |
std::vector< std::string > | m_positional |
std::string | m_positional_help |
std::unordered_set< std::string > | m_positional_set |
std::string | m_program |
bool | m_show_positional |
|
private |
|
inline |
Definition at line 757 of file cxxopts.h.
|
inlineprivate |
Definition at line 1238 of file cxxopts.h.
References recoMuon::in, m_options, and fileinputsource_cfi::option.
Referenced by add_option().
|
inline |
Definition at line 1206 of file cxxopts.h.
References add_one_option(), submitPVResolutionJobs::desc, watchdog::group, MainPageGenerator::l, m_help, eostools::move(), fileinputsource_cfi::option, alignCSCRings::s, cxxopts::toLocalString(), and cxxopts::value().
Referenced by contentValuesCheck.OptionParser::__init__(), contentValuesToDBS.OptionParser::__init__(), contentValuesToRR.OptionParser::__init__(), bookConverter.OptionParser::__init__(), contentValuesFiles.OptionParser::__init__(), and cxxopts::OptionAdder::operator()().
|
inline |
|
inline |
|
inline |
|
inlineprivate |
Definition at line 1316 of file cxxopts.h.
References generate_group_help(), watchdog::group, m_help, and mps_fire::result.
Referenced by help().
|
inlineprivate |
Definition at line 1303 of file cxxopts.h.
References cxxopts::empty(), help_one_group(), mps_fire::i, and mps_fire::result.
Referenced by generate_all_groups_help(), and help().
|
inline |
|
inline |
Definition at line 1345 of file cxxopts.h.
References g, m_help, and HcalDetIdTransform::transform().
|
inline |
Definition at line 1327 of file cxxopts.h.
References generate_all_groups_help(), generate_group_help(), m_custom_help, m_help_string, m_positional, m_positional_help, m_program, mps_fire::result, cxxopts::toLocalString(), and cxxopts::toUTF8String().
|
inlineprivate |
Definition at line 1246 of file cxxopts.h.
References ztail::d, dqm-mbProfile::format, g, watchdog::group, m_help, m_positional_set, m_show_positional, WZElectronSkims53X_cff::max, SiStripPI::min, EcalTangentSkim_cfg::o, mps_fire::result, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, cxxopts::stringLength(), and cxxopts::toLocalString().
Referenced by generate_group_help().
|
inline |
Definition at line 1073 of file cxxopts.h.
References dir2webdir::argc, GCPpyPlots::argv, m_allow_unrecognised, m_options, m_positional, and mps_fire::result.
|
inline |
Definition at line 1058 of file cxxopts.h.
References eostools::move(), and fileinputsource_cfi::option.
Referenced by parse_positional().
|
inline |
Definition at line 1062 of file cxxopts.h.
References m_next_positional, m_positional, m_positional_set, and eostools::move().
|
inline |
Definition at line 1069 of file cxxopts.h.
References eostools::move(), and parse_positional().
|
inline |
Definition at line 806 of file cxxopts.h.
References parse_positional().
|
inline |
|
inline |
|
private |
Definition at line 830 of file cxxopts.h.
Referenced by allow_unrecognised_options(), and parse().
|
private |
Definition at line 827 of file cxxopts.h.
Referenced by custom_help(), and help().
|
private |
Definition at line 838 of file cxxopts.h.
Referenced by add_option(), generate_all_groups_help(), group_help(), groups(), and help_one_group().
|
private |
|
private |
Definition at line 834 of file cxxopts.h.
Referenced by parse_positional().
|
private |
Definition at line 832 of file cxxopts.h.
Referenced by add_one_option(), and parse().
|
private |
Definition at line 833 of file cxxopts.h.
Referenced by help(), parse(), and parse_positional().
|
private |
Definition at line 828 of file cxxopts.h.
Referenced by help(), and positional_help().
|
private |
Definition at line 835 of file cxxopts.h.
Referenced by help_one_group(), and parse_positional().
|
private |
|
private |
Definition at line 829 of file cxxopts.h.
Referenced by help_one_group(), and show_positional_help().