public boolean process(String []argv){
    try {
      commandLine = new GnuParser().parse(options, argv);

      if(commandLine.hasOption("help")){
        printCliUsage();
        return false;
      }
    } catch (ParseException e) {
      System.err.println(e.getMessage());
      printCliUsage();
      return false;
    }
    return true;
  }
This class is used for parsing the options of Hive Cli
beeline/src/java/org/apache/hive/beeline/cli/CliOptionsProcessor.java