String[] of command line arguments in order to populate a
CommandLineArgs object.
Option arguments must adhere to the exact syntax:
--optName[=optValue]
That is, options must be prefixed with "--" and may or may not
specify a value. If a value is specified, the name and value must be separated
without spaces by an equals sign ("="). The value may optionally be
an empty string.
--foo --foo= --foo="" --foo=bar --foo="bar then baz" --foo=bar,baz,biz
-foo --foo bar --foo = bar --foo=bar --foo=baz --foo=biz
Any and all arguments specified at the command line without the "--"
option prefix will be considered as "non-option arguments" and made available
through the CommandLineArgs#getNonOptionArgs() method.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public CommandLineArgs | parse(String...
command line arguments, typically from a args)main() methodParse the given |
| SimpleCommandLineArgsParser | back to summary |
|---|---|
| pack-priv SimpleCommandLineArgsParser() | |
| parse | back to summary |
|---|---|
| public CommandLineArgs parse(String... args) Parse the given
| |