Examples of printUsage()


Examples of com.bbn.openmap.util.ArgParser.printUsage()

        ap.add("remove", "Delete DTED files.");
        ap.add("source", "The source DTED directory path.", 1);
        ap.add("verbose", "Print out progress.");

        if (!ap.parse(argv)) {
            ap.printUsage();
            System.exit(0);
        }

        String arg[];
        String sourceDir = null;
View Full Code Here

Examples of com.gitblit.utils.cli.CmdLineParser.printUsage()

        msg.write(txt);
        msg.write("\n\n");
      }
      msg.write("ARGUMENTS & OPTIONS\n");
      msg.write("───────────────────\n");
      clp.printUsage(msg, null);
      msg.write('\n');
      String examples = usage().trim();
      if (!StringUtils.isEmpty(examples)) {
        msg.write('\n');
        msg.write("EXAMPLES\n");
View Full Code Here

Examples of com.google.gerrit.util.cli.CmdLineParser.printUsage()

      if (clp.wasHelpRequestedByOption()) {
        StringWriter msg = new StringWriter();
        clp.printQueryStringUsage(req.getRequestURI(), msg);
        msg.write('\n');
        msg.write('\n');
        clp.printUsage(msg, null);
        msg.write('\n');
        sendText(req, res, msg.toString());
        return false;
      }
View Full Code Here

Examples of etc.aloe.options.ModeOptions.printUsage()

        try {
            parser.parseArgument(args);
        } catch (CmdLineException e) {
            System.err.println(e.getMessage());
            options.printUsage();
            parser.printUsage(System.err);
            return;
        }

        aloe.factory.setOptions(options);
View Full Code Here

Examples of joshua.util.CommandLineParser.printUsage()

     
      try {
        extract(number_of_lines, source_text, target_text, alignments, outputFile);
      } catch (NoSuchElementException e) {
        System.err.println("There are more than " + number_of_lines + " lines of input. Please determine the actual number of lines of input, and re-run with the appropriate command line flag.");
        commandLine.printUsage();
        System.exit(-1);
      }

    } catch (FileNotFoundException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.apache.commons.cli.CommandLineParser.printUsage()

  @Override
  public int run(String[] args) throws Exception {
    CommandLineParser cli = new CommandLineParser();
    if (args.length == 0) {
      cli.printUsage();
      return 1;
    }
    cli.addOption("input", false, "input path to the maps", "path");
    cli.addOption("output", false, "output path from the reduces", "path");
   
View Full Code Here

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

       final Options options, 
       final OutputStream out
    { 
       final PrintWriter writer = new PrintWriter(out)
       final HelpFormatter usageFormatter = new HelpFormatter()
       usageFormatter.printUsage(writer, 80, applicationName, options)
       writer.close()
   
   
    public static void printHelp
           final Options options, 
View Full Code Here

Examples of org.apache.geronimo.gshell.clp.Printer.printUsage()

        io.out.println(getId());
        io.out.println(" -- ");
        io.out.println();

        Printer printer = new Printer(clp);
        printer.printUsage(io.out);
        io.out.println();
    }

    protected <T> List<T> getAllServices(Class<T> clazz, String filter) throws Exception {
        ServiceReference[] references = getBundleContext().getAllServiceReferences(clazz.getName(), filter);
View Full Code Here

Examples of org.apache.hedwig.admin.console.HedwigCommands.COMMAND.printUsage()

            if (success) {
                System.out.println("Finished " + ((double)elapsedTime / 1000) + " s.");
            } else {
                COMMAND c = getHedwigCommands().get(cmd);
                if (c != null) {
                    c.printUsage();
                }
            }
        }
        return success;
    }
View Full Code Here

Examples of org.apache.karaf.shell.commands.meta.ActionMetaData.printUsage()

            Object param = it.next();
            if (HelpOption.HELP.name().equals(param)) {
                Terminal term = session != null ? (Terminal) session.get(".jline.terminal") : null;
                int termWidth = term != null ? term.getWidth() : 80;
                boolean globalScope = NameScoping.isGlobalScope(session, actionMetaData.getCommand().scope());
                actionMetaData.printUsage(action, System.out, globalScope, termWidth);
                return false;
            }
        }
       
        // Populate
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.