Examples of HelpFormatter


Examples of org.apache.commons.cli.HelpFormatter

    _cmdLine = cmdLineParser.parse(_options, args);
  }

  public void printUsage()
  {
    HelpFormatter help = new HelpFormatter();
    help.setWidth(100);
    help.printHelp("java " + AvroConvertMain.class.getName() + " [options]", _options);
  }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

    public Cli(String usage)
    {
      _usage = usage;
      _cliOptions = new Options();
      _helpFormatter = new HelpFormatter();
      _helpFormatter.setWidth(150);
    }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

    }
  }

  private static void printCliHelp(Options cliOptions)
  {
    HelpFormatter helpFormatter = new HelpFormatter();
    helpFormatter.printHelp("java " + BootstrapAddSource.class.getName(), cliOptions);
  }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

      }
  }

  private static void printCliHelp(Options cliOptions)
  {
    HelpFormatter helpFormatter = new HelpFormatter();
    helpFormatter.printHelp("java " + BootstrapDBCleanerMain.class.getName(), cliOptions);
  }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

      }
  }

    private static void printCliHelp(Options cliOptions)
    {
      HelpFormatter helpFormatter = new HelpFormatter();
      helpFormatter.printHelp("java " + BootstrapSeederMain.class.getName(), cliOptions);
    }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

  }

    private static void printCliHelp(Options cliOptions)
    {
      HelpFormatter helpFormatter = new HelpFormatter();
      helpFormatter.printHelp("java " + BootstrapSeederMain.class.getName(), cliOptions);
    }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

    }
  }

  private static void printCliHelp(Options cliOptions)
  {
    HelpFormatter helpFormatter = new HelpFormatter();
    helpFormatter.printHelp("java " + BootstrapSeederMain.class.getName(), cliOptions);
  }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

    }
  }

  private static void printCliHelp(Options cliOptions)
  {
    HelpFormatter helpFormatter = new HelpFormatter();
    helpFormatter.printHelp("java " + BootstrapDBCleanerMain.class.getName(), cliOptions);
  }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

                    throw new IllegalArgumentException(gene + " is NOT valid, only allows " + ClassifierFactory.RRNA_16S_GENE + " and " + ClassifierFactory.FUNGALLSU_GENE);
                }
            }
        } catch (Exception e) {
            System.out.println("Command Error: " + e.getMessage());
            new HelpFormatter().printHelp(120, "ComparisonCmd", "", options, "", true);
            return;
        }

        if (propFile == null && gene == null) {
            gene = ClassifierFactory.RRNA_16S_GENE;
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

        options.addOption("S", "significance", false, "Compute significance with unifrac metric");
        options.addOption("o", "outfile", true, "Write results to file instead of stdout");
    }

    private static void printUsage() {
        new HelpFormatter().printHelp("Unifrac", options, true);
    }
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.