Revision 624722d8
Added by Andreas Müller 5 months ago
src/main/java/eu/etaxonomy/cdm/server/Bootloader.java | ||
---|---|---|
172 | 172 |
public void parseCommandOptions(String[] args) throws ParseException { |
173 | 173 |
CommandLineParser parser = new GnuParser(); //TODO using DefaultParser instead currently still throws "org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -httpPort=8080" |
174 | 174 |
|
175 |
cmdLine = parser.parse( CommandOptions.getOptions(), args );
|
|
176 |
|
|
177 |
// print the help message
|
|
178 |
if(cmdLine.hasOption(HELP.getOpt())){
|
|
179 |
HelpFormatter formatter = new HelpFormatter();
|
|
180 |
formatter.setWidth(200);
|
|
181 |
formatter.printHelp( "java .. ", CommandOptions.getOptions() );
|
|
182 |
System.exit(0);
|
|
183 |
}
|
|
175 |
cmdLine = parser.parse( CommandOptions.getOptions(), args ); |
|
176 |
|
|
177 |
// print the help message |
|
178 |
if(cmdLine.hasOption(HELP.getOpt())){ |
|
179 |
HelpFormatter formatter = new HelpFormatter(); |
|
180 |
formatter.setWidth(200); |
|
181 |
formatter.printHelp( "java .. ", CommandOptions.getOptions() ); |
|
182 |
System.exit(0); |
|
183 |
} |
|
184 | 184 |
} |
185 | 185 |
|
186 | 186 |
/** |
Also available in: Unified diff
cleanup