protected void readCommandLineParameters(Configuration conf, CommandLine line)
    throws ParseException, IOException {
    final List<String> genericParameters = new ArrayList<String>();

    // Parse the generic options
    for (Map.Entry<Object, Object> entry : line.getOptionProperties("D").entrySet()) {
      genericParameters.add("-D");
      genericParameters.add(entry.getKey() + "=" + entry.getValue());
    }

    logger.info(
      "Parsed generic parameters: " + Arrays.toString(genericParameters.toArray(new String[0])));

    new GenericOptionsParser(conf, genericParameters.toArray(new String[0]));

    table = line.getOptionValue("table");

    if (line.hasOption("mapper-count")) {
      mapperCount = Integer.parseInt(line.getOptionValue("mapper-count"));
    }
    if (line.hasOption("split-count")) {
      splitCount = Integer.parseInt(line.getOptionValue("split-count"));
    }
    if (line.hasOption("rows-per-mapper")) {
      rowsPerMapper = Long.parseLong(line.getOptionValue("rows-per-mapper"));
    }

    deleteTableIfExist = line.hasOption("delete-if-exist");

    parseTableOptions(line);
  }
This method parses the command line parameters into instance variables
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/util/bulkdatagenerator/BulkDataGeneratorTool.java