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 .