|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.parsers.CommandLineParser
public class CommandLineParser
Simple command line parser.
This parser expects name value pairs separated by spaces.
Constructor Summary | |
---|---|
CommandLineParser(java.lang.String[] args)
Create a new parser with the given command line arguments. |
Method Summary | |
---|---|
boolean |
argumentExists(java.lang.String name)
Test whether an argument exists. |
java.lang.String |
getArgumentValue(java.lang.String name)
Return the value of the named argument or null if the argument name does not exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandLineParser(java.lang.String[] args)
args
- String array containing command line arguments.Method Detail |
---|
public java.lang.String getArgumentValue(java.lang.String name)
name
- Argument name.
public boolean argumentExists(java.lang.String name)
name
- Argument name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |