Examples of printHelp()


Examples of org.apache.commons.cli.HelpFormatter.printHelp()

            conf = parseConfiguration(args);
        } catch (Exception e) {
            LOG.error("Failed to initialize application", e);
            HelpFormatter formatter = new HelpFormatter();
            formatter.setWidth(Integer.MAX_VALUE);
            formatter.printHelp(
                    MessageFormat.format(
                            "java -classpath ... {0}", //$NON-NLS-1$
                            GenerateCreateTable.class.getName()),
                    OPTIONS,
                    true);
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

            ClassLoader classLoader = getClassLoader(cmd);
            task = new GenerateTask(generator, repository, classLoader);
        } catch (Exception e) {
            HelpFormatter formatter = new HelpFormatter();
            formatter.setWidth(Integer.MAX_VALUE);
            formatter.printHelp(
                    MessageFormat.format(
                            "java -classpath ... {0}",
                            Main.class.getName()),
                    OPTIONS,
                    true);
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

        try {
            conf = parseConfiguration(args);
        } catch (Exception e) {
            HelpFormatter formatter = new HelpFormatter();
            formatter.setWidth(Integer.MAX_VALUE);
            formatter.printHelp(
                    MessageFormat.format(
                            "java -classpath ... {0}",
                            GenerateExecutionId.class.getName()),
                    OPTIONS,
                    true);
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

        try {
            conf = parseConfiguration(args);
        } catch (Exception e) {
            HelpFormatter formatter = new HelpFormatter();
            formatter.setWidth(Integer.MAX_VALUE);
            formatter.printHelp(
                    MessageFormat.format(
                            "java -classpath ... {0}",
                            Explain.class.getName()),
                    OPTIONS,
                    true);
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

        try {
            arguments = parseArguments(args);
        } catch (Exception e) {
            HelpFormatter formatter = new HelpFormatter();
            formatter.setWidth(Integer.MAX_VALUE);
            formatter.printHelp(
                    MessageFormat.format(
                            "java -classpath ... {0}",
                            BatchTestRunner.class.getName()),
                    OPTIONS,
                    true);
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

        try {
            conf = parseConfiguration(args);
        } catch (Exception e) {
            HelpFormatter formatter = new HelpFormatter();
            formatter.setWidth(Integer.MAX_VALUE);
            formatter.printHelp(
                    MessageFormat.format(
                            "java -classpath ... {0}",
                            Main.class.getName()),
                    OPTIONS,
                    true);
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

        try {
            execute(conf);
        } catch (IllegalArgumentException e) {
            HelpFormatter formatter = new HelpFormatter();
            formatter.setWidth(Integer.MAX_VALUE);
            formatter.printHelp(
                    MessageFormat.format(
                            "java -classpath ... {0}",
                            Main.class.getName()),
                    OPTIONS,
                    true);
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

        try {
            conf = parseConfiguration(args);
        } catch (Exception e) {
            HelpFormatter formatter = new HelpFormatter();
            formatter.setWidth(Integer.MAX_VALUE);
            formatter.printHelp(
                    MessageFormat.format(
                            "java -classpath ... {0}",
                            Yaess.class.getName()),
                    OPTIONS,
                    true);
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

            Configuration conf = configure(args);
            task = new GenerateTask(conf);
        } catch (Exception e) {
            HelpFormatter formatter = new HelpFormatter();
            formatter.setWidth(Integer.MAX_VALUE);
            formatter.printHelp(
                    MessageFormat.format(
                            "java -classpath ... {0}",
                            Main.class.getName()),
                    OPTIONS,
                    true);
View Full Code Here

Examples of org.apache.commons.cli2.util.HelpFormatter.printHelp()

   
    PrintWriter pw = new PrintWriter(System.out);
    HelpFormatter formatter = new HelpFormatter();
    formatter.setGroup(group);
    formatter.setPrintWriter(pw);
    formatter.printHelp();
    formatter.setFooter("Specify HDFS directories while running on hadoop; else specify local file system directories");
    formatter.printFooter();

    pw.flush();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.