Public Member Functions | |
| CommandLineParser () | |
| void | setProgramDescription (String description) |
| void | addStringArg (String flag, String description, boolean required) |
| void | addStringArg (String flag, String description, boolean required, String def) |
| void | addStringListArg (String flag, String description, boolean required, ArrayList< String > def) |
| void | addStringListArg (String flag, String description, boolean required) |
| void | addIntArg (String flag, String description, boolean required) |
| void | addIntArg (String flag, String description, boolean required, int def) |
| void | addFloatArg (String flag, String description, boolean required) |
| void | addFloatArg (String flag, String description, boolean required, float def) |
| void | addDoubleArg (String flag, String description, boolean required) |
| void | addDoubleArg (String flag, String description, boolean required, double def) |
| void | addBooleanArg (String flag, String description, boolean required) |
| void | addBooleanArg (String flag, String description, boolean required, boolean def) |
| void | parse (String[] args, boolean allowDuplicateTags) |
| void | parse (String[] args) |
| Map< String, String > | getFlagsAndValues () |
| String | getArgString () |
| String | getArgString (Collection< String > flagsToRemove) |
| String | getStringArg (String flag) |
| ArrayList< String > | getStringListArg (String flag) |
| int | getIntArg (String flag) |
| float | getFloatArg (String flag) |
| double | getDoubleArg (String flag) |
| boolean | getBooleanArg (String flag) |
| void | printHelpMessage () |
| boolean | hasIntFlag (String flag) |
| boolean | hasFloatFlag (String flag) |
| boolean | hasDoubleFlag (String flag) |
| boolean | hasBooleanFlag (String flag) |
| boolean | hasStringFlag (String flag) |
| broad.core.parser.CommandLineParser.CommandLineParser | ( | ) |
| void broad.core.parser.CommandLineParser.addBooleanArg | ( | String | flag, |
| String | description, | ||
| boolean | required | ||
| ) |
Adds new boolean argument to set of arguments Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| void broad.core.parser.CommandLineParser.addBooleanArg | ( | String | flag, |
| String | description, | ||
| boolean | required, | ||
| boolean | def | ||
| ) |
Adds new boolean argument to set of arguments and stores default Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| def | default value |
| void broad.core.parser.CommandLineParser.addDoubleArg | ( | String | flag, |
| String | description, | ||
| boolean | required | ||
| ) |
Adds new double argument to set of arguments Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| void broad.core.parser.CommandLineParser.addDoubleArg | ( | String | flag, |
| String | description, | ||
| boolean | required, | ||
| double | def | ||
| ) |
Adds new double argument to set of arguments and stores default Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| def | default value |
| void broad.core.parser.CommandLineParser.addFloatArg | ( | String | flag, |
| String | description, | ||
| boolean | required | ||
| ) |
Adds new float argument to set of arguments Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| void broad.core.parser.CommandLineParser.addFloatArg | ( | String | flag, |
| String | description, | ||
| boolean | required, | ||
| float | def | ||
| ) |
Adds new float argument to set of arguments and stores default Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| def | default value |
| void broad.core.parser.CommandLineParser.addIntArg | ( | String | flag, |
| String | description, | ||
| boolean | required | ||
| ) |
Adds new int argument to set of arguments Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| void broad.core.parser.CommandLineParser.addIntArg | ( | String | flag, |
| String | description, | ||
| boolean | required, | ||
| int | def | ||
| ) |
Adds new int argument to set of arguments and stores default Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| def | default value |
| void broad.core.parser.CommandLineParser.addStringArg | ( | String | flag, |
| String | description, | ||
| boolean | required | ||
| ) |
Adds new string argument to set of arguments Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| void broad.core.parser.CommandLineParser.addStringArg | ( | String | flag, |
| String | description, | ||
| boolean | required, | ||
| String | def | ||
| ) |
Adds new string argument to set of arguments and stores default Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| def | default value |
| void broad.core.parser.CommandLineParser.addStringListArg | ( | String | flag, |
| String | description, | ||
| boolean | required, | ||
| ArrayList< String > | def | ||
| ) |
Adds new string list argument to set of arguments and stores default Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| def | default value |
| void broad.core.parser.CommandLineParser.addStringListArg | ( | String | flag, |
| String | description, | ||
| boolean | required | ||
| ) |
Adds new string list argument to set of arguments and stores default Client will crash if the same argument flag or description has already been added
| flag | the command line flag for the argument |
| description | the description of the argument |
| required | whether parameter is required |
| def | default value |
| String broad.core.parser.CommandLineParser.getArgString | ( | ) |
Get the argument string from the command line
| String broad.core.parser.CommandLineParser.getArgString | ( | Collection< String > | flagsToRemove | ) |
Get the argument string from the command line, possibly leaving out some arguments
| flagsToRemove | Flags to leave out |

| boolean broad.core.parser.CommandLineParser.getBooleanArg | ( | String | flag | ) |
Get value of boolean parameter specified by flag
| flag | The command line flag for the argument |

| double broad.core.parser.CommandLineParser.getDoubleArg | ( | String | flag | ) |
Get value of double parameter specified by flag
| flag | The command line flag for the argument |
| Map<String, String> broad.core.parser.CommandLineParser.getFlagsAndValues | ( | ) |
Get the flags and values that were specified on the command line

| float broad.core.parser.CommandLineParser.getFloatArg | ( | String | flag | ) |
Get value of float parameter specified by flag
| flag | The command line flag for the argument |
| int broad.core.parser.CommandLineParser.getIntArg | ( | String | flag | ) |
Get value of int parameter specified by flag
| flag | The command line flag for the argument |
| String broad.core.parser.CommandLineParser.getStringArg | ( | String | flag | ) |
Get value of String parameter specified by flag
| flag | The command line flag for the argument |

| ArrayList<String> broad.core.parser.CommandLineParser.getStringListArg | ( | String | flag | ) |
Get value of String parameter specified by flag
| flag | The command line flag for the argument |
| boolean broad.core.parser.CommandLineParser.hasBooleanFlag | ( | String | flag | ) |
Whether the flag is associated with a boolean argument and was specified on the command line
| flag | The flag |
| boolean broad.core.parser.CommandLineParser.hasDoubleFlag | ( | String | flag | ) |
Whether the flag is associated with a double argument and was specified on the command line
| flag | The flag |
| boolean broad.core.parser.CommandLineParser.hasFloatFlag | ( | String | flag | ) |
Whether the flag is associated with a float argument and was specified on the command line
| flag | The flag |
| boolean broad.core.parser.CommandLineParser.hasIntFlag | ( | String | flag | ) |
Whether the flag is associated with an int argument and was specified on the command line
| flag | The flag |
| boolean broad.core.parser.CommandLineParser.hasStringFlag | ( | String | flag | ) |
Whether the flag is associated with a string argument and was specified on the command line
| flag | The flag |
| void broad.core.parser.CommandLineParser.parse | ( | String[] | args, |
| boolean | allowDuplicateTags | ||
| ) |
Parse command arguments If command line is not in proper form, prints help menu and exits If a required argument is missing, prints help menu and exits
| args | the command line arguments passed to a main program |


| void broad.core.parser.CommandLineParser.parse | ( | String[] | args | ) |

| void broad.core.parser.CommandLineParser.printHelpMessage | ( | ) |
Prints program description plus argument flags and descriptions

| void broad.core.parser.CommandLineParser.setProgramDescription | ( | String | description | ) |
Sets program description to be printed as part of help menu
| description | The program description |
1.8.7