Lines Matching full:option
11 gnu_getopt() -- Like getopt(), but allow option and non-option arguments
14 option involved with the exception.
17 # Long option support added by Lars Wirzenius <liw@iki.fi>.
28 # - RETURN_IN_ORDER option
29 # - GNU extension with '-' as first character of option string
31 # - a option string with a W followed by semicolon should
57 is the string of option letters that the script wants to
62 characters should not be included in the option name. Options
67 (option, value) pairs; the second is the list of program arguments
68 left after the option list was stripped (this is a trailing slice
69 of the first argument). Each option-and-value pair returned has
70 the option as its first element, prefixed with a hyphen (e.g.,
71 '-x'), and the option argument as its second element, or an empty
72 string if the option has no argument. The options occur in the
98 mode is used by default. This means that option and non-option
100 processing options as soon as a non-option argument is
103 If the first character of the option string is `+', or if the
104 environment variable POSIXLY_CORRECT is set, then option
105 processing stops as soon as a non-option argument is encountered.
116 # Allow options after non-option arguments?
156 raise GetoptError('option --%s requires argument' % opt, opt)
159 raise GetoptError('option --%s must not have an argument' % opt, opt)
165 # full option name
169 raise GetoptError('option --%s not recognized' % opt, opt)
179 raise GetoptError('option --%s not a unique prefix' % opt, opt)
193 raise GetoptError('option -%s requires argument' % opt,
206 raise GetoptError('option -%s not recognized' % opt, opt)