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.
The class GnuParser provides an implementation of the
flatten
method.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]Deprecated.This flatten method does so using the following rules: If anOptionexists for the first character of theargumentsentry AND anOptiondoes not exist for the wholeargumentthen add the first character as an option to the processed tokens list for example "-D" and add the rest of the entry to the also. Otherwise just add the token to the processed tokens list.Methods inherited from class org.apache.commons.cli.Parser
checkRequiredOptions, getOptions, getRequiredOptions, parse, parse, parse, parse, processArgs, processOption, processProperties, setOptions
-
Constructor Details
-
GnuParser
public GnuParser()Deprecated.Constructs a new instance.
-
-
Method Details
-
flatten
Deprecated.This flatten method does so using the following rules:- If an
Optionexists for the first character of theargumentsentry AND anOptiondoes not exist for the wholeargumentthen add the first character as an option to the processed tokens list for example "-D" and add the rest of the entry to the also. - Otherwise just add the token to the processed tokens list.
- If an
-
DefaultParserinstead