Processing of command line options.
The getopt module implements a getopt function, which adheres to the POSIX syntax for command line options. GNU extensions are supported in the form of long options introduced by a double dash ("--"). Support for bundling of command line options, as was the case with the more traditional single-letter approach, is provided but not enabled by default.
Thrown on one of the following conditions:
Configuration options for getopt.
This function writes the passed text and Option into an output range in the manner described in the documentation of function defaultGetoptPrinter, unless the style option is used.
This function prints the passed Options and text in an aligned manner on stdout.
Parse and remove command line options from a string array.
The result of the getopt function.
Information about an option.
When set to "", parameters to array and associative array receivers are treated as an individual argument. That is, only one argument is appended or inserted per appearance of the option switch. If arraySep is set to something else, then each parameter is first split by the separator, and the individual pieces are treated as arguments to the same option.
The assignment character used in options with parameters (default '=').
The string that conventionally marks the end of all options (default '--').
The option character (default '-').
Copyright Andrei Alexandrescu 2008 - 2015.