public class CommandParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CommandParser.Arguments |
static class |
CommandParser.Category |
static class |
CommandParser.HelpException |
static class |
CommandParser.InvalidOptionsException |
static class |
CommandParser.Option |
Constructor and Description |
---|
CommandParser() |
Modifier and Type | Method and Description |
---|---|
void |
category(java.lang.String name) |
protected void |
init() |
CommandParser.Option |
opt(char _short,
java.lang.String _long) |
CommandParser.Option |
opt(java.lang.String _long) |
CommandParser.Arguments |
parse(java.lang.String[] args) |
protected java.util.List<java.lang.String> |
usage() |
protected java.util.List<java.lang.String> |
validate(CommandParser.Arguments arguments) |
protected void init()
protected java.util.List<java.lang.String> validate(CommandParser.Arguments arguments)
protected java.util.List<java.lang.String> usage()
public void category(java.lang.String name)
public CommandParser.Option opt(java.lang.String _long)
public CommandParser.Option opt(char _short, java.lang.String _long)
public CommandParser.Arguments parse(java.lang.String[] args) throws CommandParser.HelpException, CommandParser.InvalidOptionsException