Package | Description |
---|---|
joptsimple |
Modifier and Type | Class and Description |
---|---|
class |
AbstractOptionSpec<V> |
class |
ArgumentAcceptingOptionSpec<V>
Specification of an option that accepts an argument.
|
class |
NonOptionArgumentSpec<V>
Specification of a command line's non-option arguments.
|
class |
OptionSpecBuilder
Allows callers to specify whether a given option accepts arguments (required or optional).
|
Modifier and Type | Method and Description |
---|---|
protected OptionDescriptor |
BuiltinHelpFormatter.findAndRemoveNonOptionsSpec(Collection<? extends OptionDescriptor> options)
Finds the non-option arguments descriptor in the given collection, removes it, and returns it.
|
Modifier and Type | Method and Description |
---|---|
protected String |
BuiltinHelpFormatter.createDescriptionDisplay(OptionDescriptor descriptor)
Gives a string representing a description of the option with the given descriptor.
|
protected String |
BuiltinHelpFormatter.createNonOptionArgumentsDisplay(OptionDescriptor nonOptionDescriptor)
Creates a non-options argument help string.
|
protected String |
BuiltinHelpFormatter.createOptionDisplay(OptionDescriptor descriptor)
Creates a string for how the given option descriptor is to be represented in help.
|
protected String |
BuiltinHelpFormatter.extractTypeIndicator(OptionDescriptor descriptor)
Gives an indicator of the type of arguments of the option described by the given descriptor,
for use in help.
|
protected void |
BuiltinHelpFormatter.maybeAppendNonOptionsDescription(StringBuilder buffer,
OptionDescriptor nonOptions)
Appends help for the given non-option arguments descriptor to the given buffer.
|
protected void |
BuiltinHelpFormatter.maybeAppendOptionInfo(StringBuilder buffer,
OptionDescriptor descriptor)
Appends additional info about the given option to the given buffer.
|
protected boolean |
BuiltinHelpFormatter.shouldShowNonOptionArgumentDisplay(OptionDescriptor nonOptionDescriptor)
Decides whether or not to show a non-option arguments help.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BuiltinHelpFormatter.addHeaders(Collection<? extends OptionDescriptor> options)
Adds help row headers for option help columns.
|
protected void |
BuiltinHelpFormatter.addNonOptionsDescription(Collection<? extends OptionDescriptor> options)
Adds non-option arguments descriptions to the help output.
|
protected void |
BuiltinHelpFormatter.addOptions(Collection<? extends OptionDescriptor> options)
Adds help rows for the given options.
|
protected void |
BuiltinHelpFormatter.addRows(Collection<? extends OptionDescriptor> options)
Adds rows of help output for the given options.
|
protected OptionDescriptor |
BuiltinHelpFormatter.findAndRemoveNonOptionsSpec(Collection<? extends OptionDescriptor> options)
Finds the non-option arguments descriptor in the given collection, removes it, and returns it.
|
String |
HelpFormatter.format(Map<String,? extends OptionDescriptor> options)
Produces help text, given a set of option descriptors.
|
String |
BuiltinHelpFormatter.format(Map<String,? extends OptionDescriptor> options)
Produces help text, given a set of option descriptors.
|
protected boolean |
BuiltinHelpFormatter.hasRequiredOption(Collection<? extends OptionDescriptor> options)
Tells whether the given option descriptors contain a "required" option.
|
Copyright © 2016. All Rights Reserved.