|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.util.CommandArgs
Utility class for managing command line arguments.
| Constructor Summary | |
CommandArgs(java.lang.String[] args)
Creates a new instance of CommandArgs. |
|
| Method Summary | |
java.lang.String |
getNamedArg(java.lang.String name)
Retrieves the value of the named argument, or null if the argument does not exist. |
java.util.Map |
getNamedArgs()
Retrieves a Map of named arguments, i.e., matched pairs of arguments consisting of an argument name prefixed by "-" or "--" and the following value of that argument. |
java.lang.String[] |
getParams()
Retrieves all unnamed arguments. |
java.lang.String[] |
getRawArgs()
Retrieves the full original array of command-line arguments. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommandArgs(java.lang.String[] args)
args - command-line arguments| Method Detail |
public java.lang.String[] getRawArgs()
public java.util.Map getNamedArgs()
public java.lang.String getNamedArg(java.lang.String name)
name - argument name
public java.lang.String[] getParams()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||