edu.toronto.cs.util
Class McClapi

java.lang.Object
  extended by edu.toronto.cs.util.McClapi

public class McClapi
extends java.lang.Object

Notes on adding a new option: 1. In ParseOpts(), add using parser.opt().... 2. Set a defulat value immediately after adding. 3. In the "retrieves options values" section, get the value from result 4. m.put("name", value)


Constructor Summary
McClapi()
           
 
Method Summary
static void main(java.lang.String[] opts)
          Test driver: it will print the options map.
static java.util.Map parseOpts(java.lang.String[] opts)
          Parses the arguments producing a Map for the options and their values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

McClapi

public McClapi()
Method Detail

parseOpts

public static java.util.Map parseOpts(java.lang.String[] opts)
Parses the arguments producing a Map for the options and their values. The map is of the form (option, value).

Parameters:
opts - -- the arguements to be parsed
Returns:
-- Map of all the options

main

public static void main(java.lang.String[] opts)
Test driver: it will print the options map.