code: private CommandLine parseArgs(String[] args) throws ParseException {
          final CommandLineParser parser = new DefaultParser();
          final Options options = createCommandLineOptions();
          return parser.parse(options, args);
      }
docs: Parses the command line arguments.
  
  @param args the command line arguments
  @return the results of parsing the command line arguments
  @throws ParseException if the arguments are invalid