Package org.apache.commons.cli
Class GnuParser
- java.lang.Object
-
- org.apache.commons.cli.Parser
-
- org.apache.commons.cli.GnuParser
-
- All Implemented Interfaces:
CommandLineParser
@Deprecated public class GnuParser extends Parser
Deprecated.since 1.3, use theDefaultParser
insteadThe class GnuParser provides an implementation of theflatten
method.
-
-
Constructor Summary
Constructors Constructor Description GnuParser()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.String[]
flatten(Options options, java.lang.String[] arguments, boolean stopAtNonOption)
Deprecated.-
Methods inherited from class org.apache.commons.cli.Parser
checkRequiredOptions, getOptions, getRequiredOptions, parse, parse, parse, parse, processArgs, processOption, processProperties, setOptions
-
-
-
-
Method Detail
-
flatten
protected java.lang.String[] flatten(Options options, java.lang.String[] arguments, boolean stopAtNonOption)
Deprecated.This flatten method does so using the following rules:- If an
Option
exists for the first character of thearguments
entry AND anOption
does not exist for the wholeargument
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.
- If an
-
-