|
| Parser () |
| Creates a new Parser. More...
|
|
| Parser (bool gnu, const Descriptor usage[], int argc, char **argv, Option options[], Option buffer[], int min_abbr_len=0, bool single_minus_longopt=false, int bufmax=-1) |
| Parser(...) with non-const argv. More...
|
|
| Parser (bool gnu, const Descriptor usage[], int argc, const char **argv, Option options[], Option buffer[], int min_abbr_len=0, bool single_minus_longopt=false, int bufmax=-1) |
| Creates a new Parser and immediately parses the given argument vector. More...
|
|
| Parser (const Descriptor usage[], int argc, char **argv, Option options[], Option buffer[], int min_abbr_len=0, bool single_minus_longopt=false, int bufmax=-1) |
| POSIX Parser(...) (gnu==false) with non-const argv. More...
|
|
| Parser (const Descriptor usage[], int argc, const char **argv, Option options[], Option buffer[], int min_abbr_len=0, bool single_minus_longopt=false, int bufmax=-1) |
| POSIX Parser(...) (gnu==false). More...
|
|
bool | error () |
| Returns true if an unrecoverable error occurred while parsing options. More...
|
|
const char * | nonOption (int i) |
| Returns nonOptions()[i] (without checking if i is in range!). More...
|
|
const char ** | nonOptions () |
| Returns a pointer to an array of non-option arguments (only valid if nonOptionsCount() >0 ). More...
|
|
int | nonOptionsCount () |
| Returns the number of non-option arguments that remained at the end of the most recent parse() that actually encountered non-option arguments. More...
|
|
int | optionsCount () |
| Returns the number of valid Option objects in buffer []. More...
|
|
void | parse (bool gnu, const Descriptor usage[], int argc, char **argv, Option options[], Option buffer[], int min_abbr_len=0, bool single_minus_longopt=false, int bufmax=-1) |
| parse() with non-const argv. More...
|
|
void | parse (bool gnu, const Descriptor usage[], int argc, const char **argv, Option options[], Option buffer[], int min_abbr_len=0, bool single_minus_longopt=false, int bufmax=-1) |
| Parses the given argument vector. More...
|
|
void | parse (const Descriptor usage[], int argc, char **argv, Option options[], Option buffer[], int min_abbr_len=0, bool single_minus_longopt=false, int bufmax=-1) |
| POSIX parse() (gnu==false) with non-const argv. More...
|
|
void | parse (const Descriptor usage[], int argc, const char **argv, Option options[], Option buffer[], int min_abbr_len=0, bool single_minus_longopt=false, int bufmax=-1) |
| POSIX parse() (gnu==false). More...
|
|