Package | Description |
---|---|
fmpp.util |
Collection of more-less FMPP independent utility classes.
|
Modifier and Type | Method and Description |
---|---|
ArgsParser.OptionDefinition |
ArgsParser.addOption(java.lang.String shortName,
java.lang.String longName)
Defines an option for the parser.
|
ArgsParser.OptionDefinition |
ArgsParser.OptionDefinition.copy(java.lang.String shortName,
java.lang.String longName)
Creates a copy of the option with different short- and long-name,
but with the same property name (and other attributes).
|
ArgsParser.OptionDefinition |
ArgsParser.OptionDefinition.defaultArg(java.lang.String defaultValue)
Gives default argument value for an option that supports arguments,
thus it will be optional to specify the argument value in the
command-line.
|
ArgsParser.OptionDefinition |
ArgsParser.OptionDefinition.desc(java.lang.String desc)
Sets the description (used in help) of the option.
|
ArgsParser.OptionDefinition |
ArgsParser.getOptionDefinition(java.lang.String name)
Returns the
ArgsParser.OptionDefinition for the given option name. |
ArgsParser.OptionDefinition |
ArgsParser.OptionDefinition.group(java.lang.String propertyName)
Convenience method; same as calling
property(propertyName, optionName) , where optionName
is the long-name if that exists, otherwise the short-name. |
ArgsParser.OptionDefinition |
ArgsParser.OptionDefinition.implied()
Ensures that the option will be seemingly present if the
args[] does not contains this option or any other option that
mutually excludes this option.
|
ArgsParser.OptionDefinition |
ArgsParser.OptionDefinition.implied(java.lang.String impliedArg)
Ensures that the option will be seemingly present with the given
argument value if args[] does not contains this option, or any
other option that mutually excludes this option.
|
ArgsParser.OptionDefinition |
ArgsParser.OptionDefinition.property(java.lang.String pName)
Sets the property name for this option.
|
ArgsParser.OptionDefinition |
ArgsParser.OptionDefinition.property(java.lang.String propertyName,
java.lang.String propertyValue)
Convenience method; same as calling
property(String) and
then propertyValue . |
ArgsParser.OptionDefinition |
ArgsParser.OptionDefinition.propertyValue(java.lang.String value)
Sets the property value for this option.
|