code: public static void main(String[] args) throws Exception {
          if (args.length != 1) {
              System.err.println("usage: generator <basedir>");
              System.exit(-1);
          }
  
          File baseDir = new File(args[0]);
          System.out.println("Using baseDir: " + baseDir.getAbsolutePath());
  
          new ProjectGenerator(baseDir).generate();
      }
docs: Main point of entry from the command line. Pass the base directory for
  generation as the only argument.