Main method, which wraps the instance logic and registers
the known tasks.

@param args
767226
public static void main(String[] args) {

        DDLGenerationUtility util = new DDLGenerationUtility();

        // No task handlers since this is a single function script.
        // At least it is right now.
        int rc = util.runProgram(args);

        System.exit(rc);
    }
74467
public static void main(String[] args) {

        ConsoleWrapper console = new ConsoleWrapper(System.console(), System.err);

        // Create the AuditUtility and register tasks
        AuditUtility util = new AuditUtility(console, System.out, System.err);
        // Create / obtain the collaborators
        IFileUtility fileUtil = new FileUtility(System.getenv("WLP_USER_DIR"), System.getenv("WLP_OUTPUT_DIR"));
        util.registerTask(new AuditReaderTask(SCRIPT_NAME));
        // Kick everything off
        int rc = util.runProgram(args).getReturnCode();
        System.exit(rc);
    }
630953
public static void main(String[] args) throws ResponderConfigException {

    Responder responder = initialize(args);
    if (responder != null) {
      responder.run();
    }

  }
1234174
public static void main(String[] args) {
        System.out.println("Hello World!");
        /*Executor exec = Executors.newCachedThreadPool();
        for(int i = 0; i < 20; i++) {
            final int v = i;
            exec.execute(new Runnable() {
                @Override
                public void run() {
                    System.out.println(v);
                }
            });
        }*/


        LongStream.rangeClosed(0, 5).map(n -> n * n).forEach(s -> System.out.print(s + " "));

    }
167022
protected static void main(String args[]) {
	int from = Integer.parseInt(args[0]);	
	int to = Integer.parseInt(args[1]);
	
	statistics(from,to);
}
979198
public static void main(final String[] args) {
    GUIUtil.logUncaughtExceptions(LOG);
    GUIUtil.setLookAndFeel();
    OutputStep.setDefaultHandlerVisualizer();

    javax.swing.SwingUtilities.invokeLater(new Runnable() {
      @Override
      public void run() {
        try {
          final MultiStepGUI gui = new MultiStepGUI();
          gui.run();
          if(args != null && args.length > 0) {
            gui.setParameters(new SerializedParameterization(args));
          }
          else {
            gui.setParameters(new SerializedParameterization());
          }
        }
        catch(Exception | Error e) {
          // Restore error handler, as the GUI is likely broken.
          LoggingConfiguration.replaceDefaultHandler(new CLISmartHandler());
          LOG.exception(e);
        }
      }
    });
  }
532709
public static void main(String[] args) {
        try {
            Path graknHome = Paths.get(Objects.requireNonNull(SystemProperty.CURRENT_DIRECTORY.value()));
            Path graknProperties = Paths.get(Objects.requireNonNull(SystemProperty.CONFIGURATION_FILE.value()));

            assertEnvironment(graknHome, graknProperties);

            printGraknLogo();

            Executor bootupProcessExecutor = new Executor();
            GraknDaemon daemon = new GraknDaemon(
                    new Storage(bootupProcessExecutor, graknHome, graknProperties),
                    new Server(bootupProcessExecutor, graknHome, graknProperties)
            );

            daemon.run(args);
            System.exit(0);

        } catch (RuntimeException ex) {
            LOG.error(ErrorMessage.UNABLE_TO_START_GRAKN.getMessage(), ex);
            System.out.println(ErrorMessage.UNABLE_TO_START_GRAKN.getMessage());
            System.err.println(ex.getMessage());
            System.exit(1);
        }
    }
75859
public static void main(final String[] args) {
    try {
      final Configuration config = getClientConfiguration(args);

      LOG.log(Level.INFO, "Configuration:\n--\n{0}--", Configurations.toString(config, true));

      final Injector injector = Tang.Factory.getTang().newInjector(config);
      final SuspendClient client = injector.getInstance(SuspendClient.class);

      client.submit();
      client.waitForCompletion();
      LOG.info("Done!");

    } catch (final BindException | IOException | InjectionException ex) {
      LOG.log(Level.SEVERE, "Cannot launch: configuration error", ex);
    } catch (final Exception ex) {
      LOG.log(Level.SEVERE, "Cleanup error", ex);
    }
  }
825204
def main(args):
	''''''
	if SETUP:
		args = _invoke(SETUP, args)

	if not args and DEFAULT:
		DEFAULT()
	else:
		while args:
			task = _get_task(args[0])
			if task is None:
				abort(LOCALE['error_no_task'], args[0])

			args = _invoke(task, args[1:])

	if TEARDOWN:
		TEARDOWN()
1017917
public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            javax.swing.SwingUtilities.invokeLater(new Runnable() {

                @Override
                public void run() {
                    if (args.length != 0) {
                        //System.out.println("OK");
                        TaskManagerTabPanel panel = new TaskManagerTabPanel();
                        panel.runTaskCLI(args);
                        System.exit(0);

                    } else {
                        createAndShowGUI();
                    }
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
275
public static void main(String[] args) {
    System.err.println(toString(new int[] { Integer.parseInt(args[0]) }));
  }
738063
public static void main(String[] args) {
    System.out.println("Fastest instance is " + fastestInstance());
    System.out.println("Fastest Java instance is " + fastestJavaInstance());
  }
84139
public static void main(final String[] args) {
		BenchmarkOutputParser parser = new BenchmarkOutputParser(FRAMEWORKS.keySet());
		HtmlDiagramRenderer renderer = new HtmlDiagramRenderer(FRAMEWORKS);
		renderer.output(parser.parse(OUTPUT_FILE));
	}
775873
public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					BootstrapWindow frame = new BootstrapWindow();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}
1170188
public static void main(String[] args) {
        ConsoleWrapper console = new ConsoleWrapper(System.console(), System.err);

        // Create / obtain the collaborators
        DefaultSSLCertificateCreator certCreator = DefaultSSLCertificateFactory.getDefaultSSLCertificateCreator();
        LTPAKeyFileUtility ltpaKeyFileCreator = new LTPAKeyFileUtilityImpl();

        // Create the SecurityUtility and register tasks
        SecurityUtility util = new SecurityUtility(console, System.out, System.err);
        IFileUtility fileUtil = new FileUtility(util.getUserDir(), util.getOutputDir(null));
        util.registerTask(new EncodeTask(SCRIPT_NAME));
        util.registerTask(new CreateSSLCertificateTask(certCreator, fileUtil, SCRIPT_NAME));
        util.registerTask(new CreateLTPAKeysTask(ltpaKeyFileCreator, fileUtil, SCRIPT_NAME));

        // Kick everything off
        int rc = util.runProgram(args).getReturnCode();
        System.exit(rc);
    }
1052382
public static void main(String[] args) throws IOException {
        if(args.length == 0){
            System.out.println("No command given, choose: \n\tinit\n\tpull\n\tpush\n\tpushTerms");
            return;
        }
        
        Map<String, String> parameters = new HashMap<String, String>();
        if(args.length > 1){
            for(String s : args){
                String[] splitted = s.split("=");
                if(splitted.length==2){
                    parameters.put(splitted[0], splitted[1]);
                }
            }
        }
        
        // Read config
        Path current = Paths.get("");
        File configFile = new File(current.toAbsolutePath().toString(), "poeditor.properties");
        Config config = Config.load(configFile);
        BaseTask task = null;
        
        if("init".equals(args[0])){
            System.out.println("Initialize project");
            task = new InitTask();
            
        } else if("pull".equals(args[0])) {
            System.out.println("Pull languages");
            task = new PullTask();

        } else if("push".equals(args[0])){
            System.out.println("Push languages");
            task = new PushTask();
            
        } else if("pushTerms".equals(args[0])){
            System.out.println("Push terms");
            task = new PushTermsTask();
            
        } else if("generate".equals(args[0])){
            System.out.println("Generate config");
            task = new GenerateTask();
            
        } else if("status".equals(args[0])){
            System.out.println("Status");
            task = new StatusTask();
        }
        
        if(task != null) {
            task.configure(config, parameters);
            task.handle();
        }
    }
1143786
public static void main(String[] args) {
	System.out.println(LONG_NAME + " - Release " + RELEASE);
	System.out.println();
	System.out.println("  " + CREDO);
	System.out.println();
	System.out.println("Project maintainer: " + MAINTAINER);
	System.out.println("Javadoc accessible from the official website on SourceForge:\n\t" + WEBSITE);
	System.out.println("Submit bug reports / feature requests on the website.");
    }