|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.neu.ccs.demeterf.util.CLI
public class CLI
CLI Utility Class for parsing arguments etc.
Field Summary | |
---|---|
static int |
ARGS
Arguments index within the array returned from splitArgs |
static int |
OPTS
Options index within the array returned from splitArgs |
Method Summary | |
---|---|
static java.lang.String[] |
separateOption(java.lang.String name,
List<java.lang.String> opts)
Returns the seperated list that makes up a command-line option of the form: "--name:A:B:C". |
static List<java.lang.String>[] |
splitArgs(java.lang.String[] args)
Takes an array of strings (presumably from the command-line) and separates them into Options and Argsuments. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int ARGS
public static int OPTS
Method Detail |
---|
public static List<java.lang.String>[] splitArgs(java.lang.String[] args)
DemFGenMain
and Inline
for examples.
public static java.lang.String[] separateOption(java.lang.String name, List<java.lang.String> opts)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |