Modifier and Type | Method and Description |
---|---|
static String |
createHelpPrompt(String progname)
Returns "Try 'progname --help' for more information.".
|
static String |
createUnexpectedArgWarning(String progname,
String arg)
Returns "progname: unexpected argument: arg".
|
static int |
parse(String progname,
String[] argv,
Map<String,Option> optionMap)
Parses the command line arguments against a formal option map, registering actual occurences in it.
|
public static String createHelpPrompt(String progname)
public static String createUnexpectedArgWarning(String progname, String arg)
public static int parse(String progname, String[] argv, Map<String,Option> optionMap)
progname
- The program name to display when printing errors.argv
- The command line argument array.optionMap
- The map against which to interpret argv.