public class GnuParser extends Parser
flatten method.Parser| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList |
tokens
holder for flattened tokens
|
| Constructor and Description |
|---|
GnuParser() |
private void init()
Resets the members to their original state i.e. remove
all of tokens entries.
protected java.lang.String[] flatten(Options options, java.lang.String[] arguments, boolean stopAtNonOption)
This flatten method does so using the following rules:
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.