Examples of printHelpOn()


Examples of joptsimple.OptionParser.printHelpOn()

        // Print help options
        if(options.has("h")){
            try {
                System.out.println("Usage: java edu.byu.ece.bitstreamTools.bitstream.test.CreateEmptyBitstreams <architecture>\n");
                parser.printHelpOn(System.out);
            } catch (IOException e) {
                System.out.println(e.getMessage());
                System.exit(1);
            }
            System.exit(0);
View Full Code Here

Examples of joptsimple.OptionParser.printHelpOn()

        // Print help options
        if(options.has("h") || (arguments.size() != 1)){
            try {
                System.out.println("Usage: java edu.byu.ece.bitstreamTools.bitstream.test.CreateEmptyBitstreams <architecture>\n");
                parser.printHelpOn(System.out);
            } catch (IOException e) {
                System.out.println(e.getMessage());
                System.exit(1);
            }
            System.exit(0);
View Full Code Here

Examples of joptsimple.OptionParser.printHelpOn()

            OptionSet options = optionParser.parse(params);
            if (options.has("help"))
            {
                try
                {
                    optionParser.printHelpOn(this.outputWriter);
                }
                catch (IOException e)
                {
                    throw new IllegalStateException(e);
                }
View Full Code Here

Examples of joptsimple.OptionParser.printHelpOn()

        };

        OptionSet options = optionParser.parse(args);

        if (options.has("help"))
            optionParser.printHelpOn(this.outputWriter);

        this.host = (String)options.valueOf("host");
        this.port = (Integer)options.valueOf("port");
        this.username = (String)options.valueOf("username");
        this.password = (String)options.valueOf("password");
View Full Code Here

Examples of joptsimple.OptionParser.printHelpOn()

        OptionSet options = parser.parse(args);

        if (options.has("?")) {
            try {
                parser.printHelpOn(System.out);
                System.exit(0);
            } catch (IOException e) {
                // should never happen, but...
                e.printStackTrace();
            }
View Full Code Here

Examples of joptsimple.OptionParser.printHelpOn()

      System.exit(1);
    }

    if (options.has("?"))
    {
      parser.printHelpOn(System.out);
      System.exit(0);
    }


    System.out.println("SPI Test **************************************");
 
View Full Code Here

Examples of joptsimple.OptionParser.printHelpOn()

      System.exit(1);
    }

    if (options.has("?"))
    {
      parser.printHelpOn(System.out);
      System.exit(0);
    }


    System.out.println("Value of 'q' is: " + options.valueOf("q"));
View Full Code Here

Examples of joptsimple.OptionParser.printHelpOn()

        job.set(AvroJob.MAP_OUTPUT_SCHEMA,
            Schema.parse(mapOutSchema.value(opts)).toString());
      if (opts.hasArgument(reduces))
        job.setNumReduceTasks(reduces.value(opts));
    } catch (Exception e) {
      p.printHelpOn(err);
      return -1;
    }

    TetherJob.runJob(job);
    return 0;
View Full Code Here

Examples of joptsimple.OptionParser.printHelpOn()

    List<String> nargs = opts.nonOptionArguments();
    if (nargs.size() != 2) {
      err.println("Expected 2 args: from_file to_file (local filenames," +
          " Hadoop URI's, or '-' for stdin/stdout");
      p.printHelpOn(err);
      return 1;
    }
    int compressionLevel = 1; // Default compression level
    if (opts.hasArgument(level)) {
View Full Code Here

Examples of joptsimple.OptionParser.printHelpOn()

    OptionSet opts = p.parse(args.toArray(new String[0]));
    args = opts.nonOptionArguments();

    if (args.size() != 3) {
      err.println("Usage: uri protocol_file message_name (-data d | -file f)");
      p.printHelpOn(err);
      return 1;
    }

    URI uri = new URI(args.get(0));
    Protocol protocol = Protocol.parse(new File(args.get(1)));
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.