code: public void execute(final String[] args) {
          log.info("Generation started");
          try {
              Options options = createOptions();
              if (collectOptions(options, args)) {
                  setDefaults();
                  if (input.isDirectory()) {
                      for (File cobolFile : FileUtils
                              .listFiles(input, null, true)) {
                          generate(configProps, cobolFile, inputEncoding, output,
                                  packagePrefix, xsltFileName);
                      }
                  } else {
                      generate(configProps, input, inputEncoding, output,
                              packagePrefix, xsltFileName);
                  }
              }
          } catch (Exception e) {
              log.error("Generation failed", e);
          } finally {
              log.info("Generation ended");
          }
      }
docs: Process command line options and run generator.
  <p/>
  If no options are passed, prints the help. Help is also printed if the
  command line options are invalid.
  
  @param args generator options