public class CommandFormat extends Object
Constructor and Description |
---|
CommandFormat(String n,
int min,
int max,
String... possibleOpt)
constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
getOpt(String option)
Return if the option is set or not
|
List<String> |
parse(String[] args,
int pos)
Parse parameters starting from the given position
|
public List<String> parse(String[] args, int pos)
args
- an array of input argumentspos
- the position at which starts to parsepublic boolean getOpt(String option)
option
- String representation of an optionCopyright © 2010 The Apache Software Foundation