util
Class CommandLine
java.lang.Object
|
+--util.CommandLine
- public class CommandLine
- extends Object
Command line parser. Takes a list of arguments and returns a map
that has all the -blah arguments mapped to the values provided. If
a defaults map is provided, the defaults will be used.
Any unprocessed arguments are returned
Field Summary |
static util.CommandLineOption |
NO_ARGS
|
static util.CommandLineOption |
REQUIRED
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_ARGS
public static util.CommandLineOption NO_ARGS
REQUIRED
public static util.CommandLineOption REQUIRED
CommandLine
public CommandLine()
CommandLine
public CommandLine(Map defaults)
unprocessedArgs
public String[] unprocessedArgs()
parse
public Map parse(String[] args)
parse
public Map parse(String[] args,
boolean strict)