Module Getopt
- Description
Getopt is a group of functions which can be used to find command line options.
Command line options come in two flavors: long and short. The short ones consists of a dash followed by a character (-t), the long ones consist of two dashes followed by a string of text (--test). The short options can also be combined, which means that you can write -tda instead of -t -d -a.
Options can also require arguments, in which case they cannot be combined. To write an option with an argument you write -t argument or -targument or --test=argument.
- Constant HAS_ARG
constant
int
Getopt.HAS_ARG
- Description
Used with find_all_options() to indicate that an option requires an argument.
- See also
- Constant MAY_HAVE_ARG
constant
int
Getopt.MAY_HAVE_ARG
- Description
Used with find_all_options() to indicate that an option takes an optional argument.
- See also
- Constant NO_ARG
constant
int
Getopt.NO_ARG
- Description
Used with find_all_options() to indicate that an option does not take an argument.
- See also