class PArgList |
This class allows the parsing of a set of program arguments.
![]() | Construction |
![]() | Overrides from class PObject |
![]() | Setting & Parsing |
![]() | Getting parsed arguments |
![]() | Errors |
![]() | argumentArray The original program arguments |
![]() | optionLetters The specification letters for options |
![]() | optionNames The specification strings for options |
![]() | optionCount The count of the number of times an option appeared in the command line |
![]() | optionString The array of associated strings to options |
![]() | parameterIndex The index of each |
![]() | shift Shift count for the parameters in the argument list |
Run Time Type functions
I/O functions
Comparison functions
This class allows the parsing of a set of program arguments. This translates the standard argc/argv style variables passed into the main() function into a set of options (preceded by a '-' character) and parameters.
The specification string consists of case significant letters for each option. If the letter is followed by the ':' character then the option has an associated string. This string must be in the argument or in the next argument.
The specification string consists of case significant letters for each option. If the letter is followed by a '-' character then a long name version of the option is present. This is terminated either by a '.' or a ':' character. If the single letter or long name is followed by the ':' character then the option has may have an associated string. This string must be within the argument or in the next argument. If a single letter option is followed by a ';' character, then the option may have an associated string but this MUST follow the letter immediately, if it is present at all.
For example, "ab:c" allows for "-a -b arg -barg -c" and "a-an-arg.b-option:c;" allows for "-a --an-arg --option arg -c -copt".
Alphabetic index HTML hierarchy of classes or Java