| java.lang.Object org.apache.commons.cli.Parser org.apache.commons.cli.GnuParser
Method Summary | |
protected String[] | flatten(Options options, String[] arguments, boolean stopAtNonOption) This flatten method does so using the following rules:
- If an
Option exists for the first character of
the
arguments entry AND an
Option
does not exist for the whole argument then
add the first character as an option to the processed tokens
list e.g. |
flatten | protected String[] flatten(Options options, String[] arguments, boolean stopAtNonOption)(Code) | | This flatten method does so using the following rules:
- If an
Option exists for the first character of
the
arguments entry AND an
Option
does not exist for the whole argument then
add the first character as an option to the processed tokens
list e.g. "-D" and add the rest of the entry to the also.
- Otherwise just add the token to the processed tokens list.
Parameters: options - The Options to parse the arguments by. Parameters: arguments - The arguments that have to be flattened. Parameters: stopAtNonOption - specifies whether to stop flattening when a non option has been encountered a String array of the flattened arguments |
Methods inherited from org.apache.commons.cli.Parser | abstract protected String[] flatten(Options opts, String[] arguments, boolean stopAtNonOption)(Code)(Java Doc) public CommandLine parse(Options options, String[] arguments) throws ParseException(Code)(Java Doc) public CommandLine parse(Options options, String[] arguments, Properties properties) throws ParseException(Code)(Java Doc) public CommandLine parse(Options options, String[] arguments, boolean stopAtNonOption) throws ParseException(Code)(Java Doc) public CommandLine parse(Options options, String[] arguments, Properties properties, boolean stopAtNonOption) throws ParseException(Code)(Java Doc) public void processArgs(Option opt, ListIterator iter) throws ParseException(Code)(Java Doc)
|
|
|