Uses of Class
org.apache.commons.cli.Options
-
Uses of Options in org.apache.commons.cli
Modifier 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 instanceOptions.addOptionGroup
(OptionGroup group) 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 Options
Parser.getOptions()
Deprecated.Gets the options.static Options
PatternOptionBuilder.parsePattern
(String pattern) Returns theOptions
instance represented bypattern
.Modifier and TypeMethodDescriptionOptions.addOptions
(Options options) Adds options to this option.protected String[]
protected String[]
Deprecated.protected abstract String[]
Deprecated.Subclasses must implement this method to reduce thearguments
that 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.Deprecated.Parses the specifiedarguments
based on the specifiedOptions
.Deprecated.Parses the specifiedarguments
based 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.void
HelpFormatter.printHelp
(int width, String cmdLineSyntax, String header, Options options, String footer) Prints the help foroptions
with the specified command line syntax.void
HelpFormatter.printHelp
(int width, String cmdLineSyntax, String header, Options options, String footer, boolean autoUsage) Prints the help foroptions
with the specified command line syntax.void
HelpFormatter.printHelp
(PrintWriter pw, int width, String cmdLineSyntax, String header, Options options, int leftPad, int descPad, String footer) Prints the help foroptions
with the specified command line syntax.void
HelpFormatter.printHelp
(PrintWriter pw, int width, String cmdLineSyntax, String header, Options options, int leftPad, int descPad, String footer, boolean autoUsage) Prints the help foroptions
with the specified command line syntax.void
Prints the help foroptions
with the specified command line syntax.void
HelpFormatter.printHelp
(String cmdLineSyntax, String header, Options options, String footer, boolean autoUsage) Prints the help foroptions
with the specified command line syntax.void
Prints the help foroptions
with the specified command line syntax.void
Prints the help foroptions
with the specified command line syntax.void
HelpFormatter.printOptions
(PrintWriter pw, int width, Options options, int leftPad, int descPad) Prints the help for the specified Options to the specified writer, using the specified width, left padding and description padding.void
HelpFormatter.printUsage
(PrintWriter pw, int width, String app, Options options) Prints the usage statement for the specified application.protected StringBuffer
HelpFormatter.renderOptions
(StringBuffer sb, int width, Options options, int leftPad, int descPad) Renders the specified Options and return the rendered Options in a StringBuffer.protected void
Parser.setOptions
(Options options) Deprecated.Sets the options.