Class CommandLine
java.lang.Object
com.vividsolutions.jump.util.commandline.CommandLine
A class to parse application command-line parameters and arguments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParamSpec(ParamSpec paramSpec) get last Param with that namegetParamsArguments(String name) get all values of all parameters(options) with the given name seeParamSpec.getAllArguments()booleanvoidprintDoc()
-
Constructor Details
-
CommandLine
public CommandLine() -
CommandLine
public CommandLine(char optionCh)
-
-
Method Details
-
addParamSpec
-
getParam
-
getParamSpecs
-
getParams
-
getArguments
-
hasParam
-
getParamsArguments
get all values of all parameters(options) with the given name seeParamSpec.getAllArguments()- Parameters:
name- name of the arguments- Returns:
- an iterator to iterate through arguments with this name
-
printDoc
-
printDoc
-
parse
- Throws:
ParseException
-