Пример #1
0
 @Override
 public void execute(ApplicationContext currentContext) throws CLIException {
   HelpFormatter formatter = new HelpFormatter();
   Writer writer = currentContext.getDevice().getWriter();
   PrintWriter pw = new PrintWriter(writer, true);
   Options options =
       CommandFactory.getCommandFactory(CommandFactory.Type.SCHEDULER).supportedOptions();
   formatter.printHelp(
       pw,
       110,
       USAGE,
       "",
       options,
       formatter.getLeftPadding(),
       formatter.getDescPadding(),
       "",
       false);
 }
Пример #2
0
  @Override
  public void execute(ApplicationContext currentContext) throws CLIException {
    HelpFormatter formatter = new HelpFormatter();
    Writer writer = currentContext.getDevice().getWriter();

    ProActiveVersionUtility.writeProActiveVersionWithBreakEndLine(currentContext, System.out);

    PrintWriter pw = new PrintWriter(writer, true);
    formatter.printHelp(
        pw,
        110,
        USAGE,
        "",
        CommandFactory.getCommandFactory(CommandFactory.Type.ALL).supportedOptions(),
        formatter.getLeftPadding(),
        formatter.getDescPadding(),
        "",
        false);
  }