public class OptionParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OptionParser.InvalidOptionException |
static class |
OptionParser.MissingArgumentException |
Constructor and Description |
---|
OptionParser(String optionSpec,
String[] args) |
Modifier and Type | Method and Description |
---|---|
String |
getOptionArg() |
char |
getOptionChar() |
String |
getOptionCharString() |
String[] |
getRemainingArgs() |
static void |
main(String[] args) |
boolean |
moveToNextOption() |
public char getOptionChar()
public String getOptionCharString()
public String getOptionArg()
public boolean moveToNextOption() throws OptionParser.InvalidOptionException, OptionParser.MissingArgumentException
public String[] getRemainingArgs()
public static void main(String[] args)