|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pimeca.waster.CmdLineHandler
public class CmdLineHandler
wrapper for a command line with GNUParser Appache commons-cli
| Field Summary | |
|---|---|
private org.apache.commons.cli.CommandLine |
cmdLine
|
private int |
ERROR_EXIT_VALUE
|
| Constructor Summary | |
|---|---|
private |
CmdLineHandler()
|
|
CmdLineHandler(java.lang.String[] args)
parsing arguments |
| Method Summary | |
|---|---|
protected org.apache.commons.cli.CommandLine |
getCommandLine()
|
private org.apache.commons.cli.Options |
getOptions()
creates org.apache.commons.cli.Options for the command line class |
private org.apache.commons.cli.CommandLine |
parse(org.apache.commons.cli.Options options,
java.lang.String[] input)
parse with Posix parser. |
private void |
printHelp()
print help statement to standard output |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final int ERROR_EXIT_VALUE
private org.apache.commons.cli.CommandLine cmdLine
| Constructor Detail |
|---|
private CmdLineHandler()
public CmdLineHandler(java.lang.String[] args)
args - command line| Method Detail |
|---|
protected org.apache.commons.cli.CommandLine getCommandLine()
private org.apache.commons.cli.CommandLine parse(org.apache.commons.cli.Options options,
java.lang.String[] input)
options - command line optionsinput - command line input
private org.apache.commons.cli.Options getOptions()
private void printHelp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||