Create immutable getopt instance
Create immutable getopt instance
Sequence of command line arguments. Sequence can be empty but can not contain zero sized strings.
list of legitimate option characters. If character is followed by colon, the option requires argument. Must not be empty.
If argument is missing or option is unknown exception is raised.
if input parameters are invalid
java.lang.NoSuchElementExceptionif option is unknown or parameter is missing. Strict mode only.
Command line arguments with options and their arguments removed.
Command line arguments with options and their arguments removed.
1.0
Command line options and their values.
Command line options and their values. If option does not have argument map contains empty string as value. If command line option was found but not declared in optstring, null is stored.
1.0
options argument flag map.
options argument flag map. Value true indicates that option has required argument. This map is created from optstring.
1.0
Validate parsed options.
Validate parsed options. Throws an Exception if unknown option is encountered or required argument is missing. If getopt is created in strict mode this function is automatically called after options are parsed.
1.1
if option is unknown or argument is missing
POSIX getopt(3) parser with GNU extension '--', but without long options.
1.1
1.0
if input parameters are invalid
java.lang.NoSuchElementExceptionif option is unknown or parameter is missing. Strict mode only.