public class CommandParser extends 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(String name) |
protected void |
init() |
CommandParser.Option |
opt(char _short,
String _long) |
CommandParser.Option |
opt(String _long) |
CommandParser.Arguments |
parse(String[] args) |
protected List<String> |
usage() |
protected List<String> |
validate(CommandParser.Arguments arguments) |
protected void init()
protected List<String> validate(CommandParser.Arguments arguments)
public void category(String name)
public CommandParser.Option opt(String _long)
public CommandParser.Option opt(char _short, String _long)
public CommandParser.Arguments parse(String[] args) throws CommandParser.HelpException, CommandParser.InvalidOptionsException
Copyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.