Examples of usage()


Examples of com.beust.jcommander.JCommander.usage()

        final CommandLineArguments commandLineArguments = new CommandLineArguments();
        final JCommander jCommander = new JCommander(commandLineArguments, args);
        jCommander.setProgramName("graylog2-radio");

        if (commandLineArguments.isShowHelp()) {
            jCommander.usage();
            System.exit(0);
        }

        if (commandLineArguments.isShowVersion()) {
            System.out.println("Graylog2 Radio " + RadioVersion.VERSION);
View Full Code Here

Examples of com.beust.jcommander.JCommander.usage()

        } else {
            org.apache.log4j.Logger.getLogger(ESTimestampFixup.class).setLevel(Level.INFO);
        }

        if (commandLineOptions.isHelp()) {
            jCommander.usage();
            System.exit(0);
        }

        if (commandLineOptions.getIndicesArray().length == 0) {
            System.out.println("No indices given. Use '-i graylog2_0 graylog2_1 graylog2_2' command line option.");
View Full Code Here

Examples of com.beust.jcommander.JCommander.usage()

            System.exit(0);
        }

        if (commandLineOptions.getIndicesArray().length == 0) {
            System.out.println("No indices given. Use '-i graylog2_0 graylog2_1 graylog2_2' command line option.");
            jCommander.usage();
            System.exit(1);
        }

        final JadConfig jadConfig = new JadConfig();
        final Configuration configuration = readConfiguration(jadConfig, commandLineOptions);
View Full Code Here

Examples of com.beust.jcommander.JCommander.usage()

        final CommandLineArguments commandLineArguments = new CommandLineArguments();
        final JCommander jCommander = new JCommander(commandLineArguments, args);
        jCommander.setProgramName("graylog2");

        if (commandLineArguments.isShowHelp()) {
            jCommander.usage();
            System.exit(0);
        }

        if (commandLineArguments.isShowVersion()) {
            System.out.println("Graylog2 Server " + ServerVersion.VERSION);
View Full Code Here

Examples of com.beust.jcommander.JCommander.usage()

    JCommanderParser jct = new JCommanderParser();
    JCommander jcmdr = new JCommander(jct, args);
   
    if(args == null || args.length == 0 || jct.help){
      jcmdr .usage();
      System.exit(0);
    }

    if (jct.inputFilename == null) {
      System.out.println("ERROR: Need to specify input filename with -i");
View Full Code Here

Examples of com.beust.jcommander.JCommander.usage()

    public static void main(String[] args) {
        ResourceGenerator generator = new ResourceGenerator();
        JCommander jCommander = new JCommander(generator, args);
        if (generator.isHelp()) {
            jCommander.usage();
        } else {
            generator.execute();
        }
    }
View Full Code Here

Examples of com.beust.jcommander.JCommander.usage()

    try {
      parser.setProgramName(getJarName());
      parser.parse(args);
     
      if (help) {
        parser.usage();
        System.exit(0);
      }
     
      String command = parser.getParsedCommand();
      if (MatrixCommand.COMMAND.equals(command)) {
View Full Code Here

Examples of com.beust.jcommander.JCommander.usage()

      } else if (OptimizationCommand.COMMAND.equals(command)) {
        optimze.execute();
      } else if (EclipseProcessorCommand.COMMAND.equals(command)) {
        eclipse.execute();
      } else {
        parser.usage();
        System.exit(1);
      }
     
    } catch (ParameterException e) {
      System.err.println(e.getMessage());
View Full Code Here

Examples of com.beust.jcommander.JCommander.usage()

      }
     
    } catch (ParameterException e) {
      System.err.println(e.getMessage());
      System.err.println();
      parser.usage();
    }
  }
 
  static String getJarName() {
    ProtectionDomain domain = CliApplication.class.getProtectionDomain();
View Full Code Here

Examples of com.beust.jcommander.JCommander.usage()

    Opts opts = new Opts();
    JCommander jc = new JCommander(opts);
    jc.setProgramName(NativeMapConcurrencyTest.class.getName());
    jc.parse(args);
    if (opts.help) {
      jc.usage();
      return;
    }
    NativeMap nm = create(opts.rows, opts.cols);
    runTest(nm, opts.rows, opts.cols, opts.threads, opts.writeThreads);
    nm.delete();
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.