private static void parseCommandLineArguments ( String [ ] commandLineArguments ) { Options options = constructGnuOptions ( ) ; CommandLineParser parser = new GnuParser ( ) ; try { CommandLine line = parser . parse ( options , commandLineArguments ) ; if ( line . hasOption ( HELP_OPTION ) ) { printHelp ( options ) ; } if ( line . hasOption ( DEBUG_OPTION ) ) { debugEnabled = true ; } if ( ! debugEnabled && line . hasOption ( QUIET_OPTION ) ) { quiet = true ; } } catch ( Throwable t ) { printHelp ( options ) ; } }
Parses command line arguments .