question: public QuerierCLI ( String [ ] args ) { cliOptions = createOptions ( ) ; try { CommandLineParser parser = new GnuParser ( ) ; commandLine = parser . parse ( cliOptions , args , true ) ; if ( hasOption ( "h" ) ) { printHelp ( ) ; System . exit ( 1 ) ; } if ( ! parseOptions ( ) ) { logger . info ( "The provided options are not valid" ) ; printHelp ( ) ; System . exit ( 1 ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; System . exit ( 1 ) ; } }
target:  Create and parse allowable options