Package org.jcommando

Examples of org.jcommando.Option


   /**
     * JCommando generated constructor.
     */
   public CommandLineParser()
   {
      Option alg = new Option();
      alg.setId("alg");
      alg.setShortMnemonic("a");
      alg.setLongMnemonic("alg");
      alg.setDescription("Algorithm");
      alg.setOptionType("String");
      addOption(alg);

      Option graph = new Option();
      graph.setId("graph");
      graph.setShortMnemonic("g");
      graph.setLongMnemonic("graph");
      graph.setDescription("Graph");
      graph.setOptionType("String");
      addOption(graph);

      Option graphtype = new Option();
      graphtype.setId("graphtype");
      graphtype.setShortMnemonic("gt");
      graphtype.setLongMnemonic("graphtype");
      graphtype.setDescription("Graph Type");
      graphtype.setOptionType("String");
      addOption(graphtype);

      Option inputfile = new Option();
      inputfile.setId("inputfile");
      inputfile.setShortMnemonic("i");
      inputfile.setLongMnemonic("inputfile");
      inputfile.setDescription("Input file for the graph");
      inputfile.setOptionType("String");
      addOption(inputfile);

      Option classpath = new Option();
      classpath.setId("classpath");
      classpath.setShortMnemonic("cp");
      classpath.setLongMnemonic("classpath");
      classpath.setDescription("Specify the class path of the algorithm.");
      classpath.setOptionType("String");
      addOption(classpath);

      Command create = new Command();
      create.setName("create");
      create.setId("create");
View Full Code Here

TOP

Related Classes of org.jcommando.Option

Copyright © 2018 www.massapicom. 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.