base/common/src/main/com/thesett/common/util/CommandLineParser.java
protected void addOption(String option, String comment, String argument, boolean mandatory, String formatRegexp)
    {
        // Check if usage text has been set in which case this option is expecting arguments.
        boolean expectsArgs = (!((argument == null) || "".equals(argument)));

        // Add the option to the map of command line options.
        CommandLineOption opt = new CommandLineOption(option, expectsArgs, comment, argument, mandatory, formatRegexp);
        optionMap.put(option, opt);
    }
protected void addOption(String option, String comment, String argument, boolean mandatory, String formatRegexp)
    {
        // Check if usage text has been set in which case this option is expecting arguments.
        boolean expectsArgs = (!((argument == null) || "".equals(argument)));

        // Add the option to the map of command line options.
        CommandLineOption opt = new CommandLineOption(option, expectsArgs, comment, argument, mandatory, formatRegexp);
        optionMap.put(option, opt);
    }
protected void addOption ( String option , String comment , String argument , boolean mandatory , String formatRegexp ) { // Check if usage text has been set in which case this option is expecting arguments. boolean expectsArgs = ( ! ( ( argument == null ) || "" . equals ( argument ) ) ) ; // Add the option to the map of command line options. CommandLineOption opt = new CommandLineOption ( option , expectsArgs , comment , argument , mandatory , formatRegexp ) ; optionMap . put ( option , opt ) ; }
Adds the option to list of available command line options.

@param option       The option to add as an available command line option.
@param comment      A comment for the option.
@param argument     The text that appears after the option in the usage string.
@param mandatory    When true, indicates that this option is mandatory.
@param formatRegexp The format that the argument must take, defined as a regular expression.
Adds the option to list of available command line options .