|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Supported Option Properties: argName: String longOpt: String args: int optionalArg: boolean required: boolean type: Object valueSeparator: char
Field Summary | |
---|---|
HelpFormatter |
formatter
|
Options |
options
|
CommandLineParser |
parser
|
boolean |
posix
|
String |
usage
|
PrintWriter |
writer
|
Constructor Summary | |
CliBuilder()
|
Method Summary | |
---|---|
def |
invokeMethod(String name, Object args)
Recognize all one-character method calls as option specifications. |
Option |
option(def shortname, Map details, def info)
How to create an option from the specification. |
OptionAccessor |
parse(def args)
Make options accessible from command line args with parser (default: Posix). |
void |
usage()
Print the usage message with writer (default: System.out) and formatter (default: HelpFormatter) |
Constructor Detail |
---|
CliBuilder()
Method Detail |
---|
public def invokeMethod(String name, Object args)
Option option(def shortname, Map details, def info)
OptionAccessor parse(def args)
void usage()