docs: public static void main(final String[] args)
      {
          // passing true to constructor indicates the compiler is being run in standalone mode
          final VoltCompiler compiler = new VoltCompiler(true, false);
  
          boolean success = false;
          if (args.length > 0 && args[0].toLowerCase().endsWith(".jar")) {
              // The first argument is *.jar for the new syntax.
              if (args.length >= 2) {
                  // Check for accidental .jar or .xml files specified for argument 2
                  // to catch accidental incomplete use of the legacy syntax.
                  if (args[1].toLowerCase().endsWith(".xml") || args[1].toLowerCase().endsWith(".jar")) {
                      System.err.println("Error: Expecting a DDL file as the second argument.\n"
                                       + "      .xml and .jar are invalid DDL file extensions.");
                      System.exit(-1);
                  }
                  success = compiler.compileFromDDL(args[0], ArrayUtils.subarray(args, 1, args.length));
              }
              else {
                  System.err.printf("Usage: %s\n", usageNew);
                  System.exit(-1);
              }
          }
          else {
              // Can't recognize the arguments or there are no arguments.
              System.err.printf("Usage: %s\n       %s\n", usageNew, usageLegacy);
              System.exit(-1);
          }
  
          // Should have exited if inadequate arguments were provided.
          assert(args.length > 0);
  
          // Exit with error code if we failed
          if (!success) {
              compiler.summarizeErrors(System.out, null);
              System.exit(-1);
          }
          compiler.summarizeSuccess(System.out, null, args[0]);
      }