Examples of HelpFormatter


Examples of com.alibaba.antx.util.cli.HelpFormatter

        return cli;
    }

    public void help(PrintWriter out) {
        HelpFormatter formatter = new HelpFormatter();

        formatter.defaultSyntaxPrefix = "ʹ�÷�����";

        formatter.printHelp(out, HelpFormatter.DEFAULT_WIDTH, "antxconfig [��ѡ����] [Ŀ¼��|���ļ���]\n", "��ѡ������", options,
                HelpFormatter.DEFAULT_LEFT_PAD, HelpFormatter.DEFAULT_DESC_PAD, "\n");
    }
View Full Code Here

Examples of com.dotcms.repackage.org.apache.commons.cli.HelpFormatter

        return Messages.getString( "UpdateAgent.text.unknown" );
    }

    public static void printHelp ( Options options, String helpText ) {

        HelpFormatter formatter = new HelpFormatter();
        String txt = Messages.getString( "UpdateAgent.text.agent.version" ) + getManifestValue( UpdateAgent.MANIFEST_PROPERTY_AGENT_VERSION ) + "\n";
        txt += helpText;
        formatter.printHelp( "autoUpdater <options>", "", options, txt );
    }
View Full Code Here

Examples of com.facebook.presto.hive.shaded.org.apache.commons.cli.HelpFormatter

      printSerdePropURIUpdateSummary(updateSerdeURIretVal, serdePropKey, isDryRun);
    }
  }

  private static void printAndExit(HiveMetaTool metaTool) {
    HelpFormatter formatter = new HelpFormatter();
    formatter.printHelp("metatool", metaTool.cmdLineOptions);
    System.exit(1);
  }
View Full Code Here

Examples of com.zaranux.client.org.apache.commons.cli.HelpFormatter

    }
   
    final PrintStream outPS = (PrintStream) System.out;

   
    HelpFormatter formatter = new HelpFormatter();
    formatter.printHelp(outPS,150,"cmd", "help", options,9,9,"footer",true, callback);
   
         
  }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

  /* (non-Javadoc)
   * @see org.gudy.azureus2.ui.console.commands.IConsoleCommand#printHelp(java.io.PrintStream, java.util.List)
   */
  public void printHelpExtra(PrintStream out, List args)
  {
    HelpFormatter formatter = new HelpFormatter();
    PrintWriter writer = new PrintWriter(out);
    writer.println("> -----");
    writer.println(getCommandDescriptions());
//    formatter.printHelp(writer, 80, getCommandDescriptions(), ">>>", getOptions(), 4, 4, ">>>", true);
    formatter.printOptions(writer, 80, getOptions(), 4, 4);
    writer.println("> -----");
    writer.flush();
  }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

      if (constart)
        System.exit(2);
    }
    if (commands.hasOption('h')) {
      if (constart) {
        HelpFormatter hf = new HelpFormatter();
        hf.printHelp("java org.gudy.azureus2.ui.common.Main", "Optionally you can put torrent files to add to the end of the command line.\r\n", options, "Available User Interfaces: swt (default), web, console\r\nThe default interface is not started if you give either the '-e' or '-c' option (But you can start it by hand with '-u').", true);
        System.exit(0);
      }
    }
    return commands;
  }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

     * Display usage information based upon current command-line option
     * configuration.
     */
    public static void displayHelp()
    {
        HelpFormatter formatter = new HelpFormatter();
        formatter.printHelp(Schema2XMI.class.getName() + " [options] ...]]", "\nOptions:", options, "\n");
    }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

    }
  }

  private static void printUsage(Options options) {
    System.out.println("Sesame Server, a standalone RDF server.");
    HelpFormatter formatter = new HelpFormatter();
    formatter.setWidth(80);
    formatter.printHelp("server [OPTION]", options);
  }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

    return options;
  }

  private static void printUsage(Options options) {
    System.out.println("USAGE:");
    HelpFormatter formatter = new HelpFormatter();
    formatter.setWidth(80);
    formatter.printHelp("start-server [OPTION]", options);
  }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

    console.start();
  }

  private static void printUsage(Options options) {
    System.out.println("Sesame Console, an interactive shell based utility to communicate with Sesame repositories.");
    HelpFormatter formatter = new HelpFormatter();
    formatter.setWidth(80);
    formatter.printHelp("start-console [OPTION] [repositoryID]", options);
    // writeln("Usage: start-console [OPTION] [repositoryID]");
    // writeln();
    // writeln(" -h, --help print this help");
    // writeln(" -s, --serverURL=URL URL of Sesame server to connect to, e.g.
    // http://localhost/openrdf-sesame/");
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.