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
           
 
Constructor Summary
CommandLine()
           
CommandLine(Map defaults)
           
 
Method Summary
 Map parse(String[] args)
           
 Map parse(String[] args, boolean strict)
           
 String[] unprocessedArgs()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ARGS

public static util.CommandLineOption NO_ARGS

REQUIRED

public static util.CommandLineOption REQUIRED
Constructor Detail

CommandLine

public CommandLine()

CommandLine

public CommandLine(Map defaults)
Method Detail

unprocessedArgs

public String[] unprocessedArgs()

parse

public Map parse(String[] args)

parse

public Map parse(String[] args,
                 boolean strict)