Uses of Class
org.apache.commons.cli.Options
Packages that use Options
Package
Description
Apache Commons CLI provides a simple API for presenting, processing, and validating a Command Line Interface.
The help production system.
-
Uses of Options in org.apache.commons.cli
Fields in org.apache.commons.cli declared as OptionsMethods in org.apache.commons.cli that return OptionsModifier and TypeMethodDescriptionAdds an option that only contains a short-name.Adds an option that only contains a short name.Adds an option that contains a short-name and a long-name.Adds an option instance.Options.addOptionGroup(OptionGroup optionGroup) Adds the specified option group.Options.addOptions(Options options) Adds options to this option.Options.addRequiredOption(String opt, String longOpt, boolean hasArg, String description) Adds an option that contains a short-name and a long-name.protected OptionsParser.getOptions()Deprecated.Gets the options.static OptionsPatternOptionBuilder.parsePattern(String pattern) Returns theOptionsinstance represented bypattern.Methods in org.apache.commons.cli with parameters of type OptionsModifier and TypeMethodDescriptionOptions.addOptions(Options options) Adds options to this option.protected String[]protected String[]Deprecated.This flatten method does so using the following rules: If anOptionexists for the first character of theargumentsentry AND anOptiondoes not exist for the wholeargumentthen add the first character as an option to the processed tokens list for example "-D" and add the rest of the entry to the also. Otherwise just add the token to the processed tokens list.protected abstract String[]Deprecated.Subclasses must implement this method to reduce theargumentsthat have been passed to the parse method.protected String[]Parses the arguments according to the specified options.Parses the arguments according to the specified options.DefaultParser.parse(Options options, String[] arguments, Properties properties) Parses the arguments according to the specified options and properties.DefaultParser.parse(Options options, String[] arguments, Properties properties, boolean stopAtNonOption) Parses the arguments according to the specified options and properties.DefaultParser.parse(Options options, Properties properties, DefaultParser.NonOptionAction nonOptionAction, String... arguments) Parses the arguments according to the specified options and properties.Deprecated.Parses the specifiedargumentsbased on the specifiedOptions.Deprecated.Parses the specifiedargumentsbased on the specifiedOptions.Parser.parse(Options options, String[] arguments, Properties properties) Deprecated.Parse the arguments according to the specified options and properties.Parser.parse(Options options, String[] arguments, Properties properties, boolean stopAtNonOption) Deprecated.Parse the arguments according to the specified options and properties.voidHelpFormatter.printHelp(int width, String cmdLineSyntax, String header, Options options, String footer) Deprecated.Prints the help foroptionswith the specified command line syntax.voidHelpFormatter.printHelp(int width, String cmdLineSyntax, String header, Options options, String footer, boolean autoUsage) Deprecated.Prints the help foroptionswith the specified command line syntax.voidHelpFormatter.printHelp(PrintWriter pw, int width, String cmdLineSyntax, String header, Options options, int leftPad, int descPad, String footer) Deprecated.Prints the help foroptionswith the specified command line syntax.voidHelpFormatter.printHelp(PrintWriter pw, int width, String cmdLineSyntax, String header, Options options, int leftPad, int descPad, String footer, boolean autoUsage) Deprecated.Prints the help foroptionswith the specified command line syntax.voidDeprecated.Prints the help foroptionswith the specified command line syntax.voidHelpFormatter.printHelp(String cmdLineSyntax, String header, Options options, String footer, boolean autoUsage) Deprecated.Prints the help foroptionswith the specified command line syntax.voidDeprecated.Prints the help foroptionswith the specified command line syntax.voidDeprecated.Prints the help foroptionswith the specified command line syntax.voidHelpFormatter.printOptions(PrintWriter pw, int width, Options options, int leftPad, int descPad) Deprecated.Prints the help for the specified Options to the specified writer, using the specified width, left padding and description padding.voidHelpFormatter.printUsage(PrintWriter pw, int width, String app, Options options) Deprecated.Prints the usage statement for the specified application.protected StringBufferHelpFormatter.renderOptions(StringBuffer sb, int width, Options options, int leftPad, int descPad) Deprecated.Renders the specified Options and return the rendered Options in a StringBuffer.protected voidParser.setOptions(Options options) Deprecated.Sets the options. -
Uses of Options in org.apache.commons.cli.help
Methods in org.apache.commons.cli.help with parameters of type OptionsModifier and TypeMethodDescriptionfinal voidAbstractHelpFormatter.printHelp(String cmdLineSyntax, String header, Options options, String footer, boolean autoUsage) Prints the help forOptionswith the specified command line syntax.final voidAbstractHelpFormatter.printOptions(Options options) Prints the option table for the specifiedOptionsto theHelpAppendable.Creates a new list of options ordered by the comparator.AbstractHelpFormatter.toSyntaxOptions(Options options) Return the string representation of the options as used in the syntax display.