protected static void optionToConf(CommandLine cmd, String option, Configuration conf,
    String destConfKey) {
    if (cmd.hasOption(option)) {
      String value = cmd.getOptionValue(option);
      LOG.info("Set configuration key:" + destConfKey + " value:" + value);
      conf.set(destConfKey, value);
    }
  }
Parse the command line options to set parameters the conf.
hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java