Examples of HelpFormatter


Examples of org.apache.commons.cli.HelpFormatter

        if (args.contains(CMD_ACTION_SET_DISPLAYNAME_EMAIL)) {
            return setDisplayNameAndOrEmail(cmd);
        }

        String actions = StringUtils.join(getActions(), " | ");
        HelpFormatter formatter = new HelpFormatter();
        formatter.printHelp(UserAdmin.class.getSimpleName() + " < " + actions + " >", getOptions());
        return -1;
    }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

      line = parser.parse( options, args );
      if (line.getArgs().length != 0) {
        throw new ParseException("Unexpected options");
      }
    } catch (ParseException pe) {
      HelpFormatter formatter = new HelpFormatter();
      formatter.printHelp("TestFileAppend2", options);
      throw pe;
    }
           
    TestFileAppend2 tfa2 = new TestFileAppend2();
    tfa2.numDatanodes = Integer.parseInt(
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter

      processGeneralOptions(conf, commandLine);
      return commandLine.getArgs();
    } catch(ParseException e) {
      LOG.warn("options parsing failed: "+e.getMessage());

      HelpFormatter formatter = new HelpFormatter();
      formatter.printHelp("general options are: ", opts);
    }
    return args;
  }
View Full Code Here

Examples of org.apache.commons.cli2.util.HelpFormatter

  private static void parseCommand(String[] args)
  {
    Parser parser = new Parser();

    // configure a HelpFormatter
    HelpFormatter hf = new HelpFormatter();
    DefaultOptionBuilder oBuilder = new DefaultOptionBuilder();
    ;

    // configure a parser
    Parser p = new Parser();
View Full Code Here

Examples of org.apache.felix.sigil.common.runtime.cli.HelpFormatter

        return server;
    }

    private static void printHelp()
    {
        HelpFormatter f = new HelpFormatter();
        f.printHelp(COMMAND_LINE_SYNTAX, options);
    }
View Full Code Here

Examples of org.apache.geronimo.twiddle.util.HelpFormatter

            if (info.hasDescription()) {
                out.println(info.getDescription());
                out.println();
            }
           
            HelpFormatter formatter = new HelpFormatter(out);
            formatter.print(info.getName() + " [options] [prefix]", options);
           
            return Command.SUCCESS;
        }
       
        String[] unused = line.getArgs();
View Full Code Here

Examples of org.broadinstitute.gatk.utils.help.HelpFormatter

    /**
     * Prints out the help associated with these command-line argument definitions.
     * @param applicationDetails Details about the specific GATK-based application being run.
     */
    public void printHelp( ApplicationDetails applicationDetails ) {
        new HelpFormatter().printHelp(applicationDetails,argumentDefinitions);
    }
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.