|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.avis.util.CommandLine
public final class CommandLine
General command line utilities.
| Method Summary | |
|---|---|
static int |
intArg(String[] args,
int arg)
Get an integer argument from a given index, throwing a descriptive exception if the argument is missing or not a number. |
static String |
stringArg(String[] args,
int arg)
Get a string argument from a given index, throwing a descriptive exception if the argument is missing. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String stringArg(String[] args,
int arg)
args - The command line arguments.arg - The argument index to retrieve.
IllegalCommandLineOption - if arg does not exist.
public static int intArg(String[] args,
int arg)
args - The command line arguments.arg - The argument index to retrieve.
IllegalCommandLineOption - if arg does not exist or is not
a number.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||