private CommandLine getCommandLine ( String [ ] args , Options options ) { final CommandLineParser parser = new BasicParser ( ) ; CommandLine commandLine = null ; try { commandLine = parser . parse ( options , args ) ; } catch ( ParseException e ) { printUsage ( options , e . getMessage ( ) ) ; System . exit ( 1 ) ; } return commandLine ; }
Parse the command line