private boolean validateCommand(String[] args) {
    CLI cli = new CLI(clientConf);
    try {
      cli.parseArguments(args);
    } catch (HadoopIllegalArgumentException e) {
      return false;
    } catch (Exception e) {
      // this is used to verify the command arguments only.
      // no HadoopIllegalArgumentException = the arguments are good.
      return true;
    }
    return true;
  }
Check to see if a command can be accepted.
@param args a String array of arguments
@return true if the command can be accepted, false if not.
hbase-http/src/test/java/org/apache/hadoop/hbase/http/log/TestLogLevel.java