20 #ifndef MPD_UTIL_OPTIONPARSER_HXX 21 #define MPD_UTIL_OPTIONPARSER_HXX 42 : argc(_argc - 1), argv(_argv + 1),
43 option(nullptr), option_raw(nullptr), is_long(false) { }
54 assert(option_raw !=
nullptr);
Command line option definition.
bool CheckOption(const OptionDef &opt, const OptionDef &alt_opt)
Checks if current option is a specified option or specified alternative option.
static bool IsOption(const char *s)
Checks if specified string is a command line option.
bool ParseNext()
Parses current command line entry.
char * GetOption()
Gets the last parsed option.
Command line option parser.
OptionParser(int _argc, char **_argv)
Constructs OptionParser.
bool CheckOption(const OptionDef &opt)
Checks if current option is a specified option.
bool HasEntries() const
Checks if there are command line entries to process.