|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.toronto.cs.util.McClapi
public class McClapi
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 |
---|
public McClapi()
Method Detail |
---|
public static java.util.Map parseOpts(java.lang.String[] opts)
opts
- -- the arguements to be parsed
public static void main(java.lang.String[] opts)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |