code: public static void commandLineCompileWithErrorHandling(String[] args, boolean lookupUnnamedFiles) {
          try {
              commandLineCompile(args, lookupUnnamedFiles);
          } catch (Throwable e) {
              new ErrorReporter(e, displayStackTraceOnError).write(System.err);
              System.exit(1);
          }
      }
docs: Primary entry point for compiling from the command line
  (using the groovyc script).
  <p>
  If calling inside a process and you don't want the JVM to exit on an
  error call commandLineCompile(String[]), which this method simply wraps
  
  @param args               command line arguments
  @param lookupUnnamedFiles do a lookup for .groovy files not part of
  the given list of files to compile