public boolean hasTraceOption() {
    if(commandLine.hasOption("trace")) {
      return true;
    }
    return false;
  }
Test whether debug option is set
hplsql/src/main/java/org/apache/hive/hplsql/Arguments.java