# Uses of Class
ml.options.OptionSet

## Uses of OptionSet in ml.options

Methods in ml.options that return OptionSet
Modifier and Type
Method
Description
`OptionSet`
Options.`addSet(String name)`
Add an option set.
`OptionSet`
Options.`addSet(String name, int data)`
Add an option set.
`OptionSet`
Options.`addSet(String name, int minData, int maxData)`
Add an option set.
`OptionSet`
Options.`addSet(String name, OptionSet set)`
Add an option set by cloning an existing set.
`OptionSet`
Options.`getMatchingSet()`
Return the (first) matching set.
`OptionSet`
Options.`getMatchingSet(boolean ignoreUnmatched, boolean requireDataLast)`
Return the (first) matching set.
`OptionSet`
Options.`getSet()`
This returns the (anonymous) default set
`OptionSet`
Options.`getSet(String name)`
Return an option set - or `null`, if no set with the given name exists
`OptionSet`
OptionSet.`setDataText(int index, String text)`
Set the data text for a data item on the command line.
`OptionSet`
OptionSet.`setHelpText(int index, String text)`
Set the help text for a data item on the command line.
Methods in ml.options with parameters of type OptionSet
Modifier and Type
Method
Description
`static void`
ExclusiveConstraint.`add(OptionSet optionSet, String... keys)`
Add a constraint to the given option set using the default multiplicity defined for this set
`static void`
ExclusiveConstraint.`add(OptionSet optionSet, Options.Multiplicity multiplicity, String... keys)`
Add a constraint to the given option set
`OptionSet`
Options.`addSet(String name, OptionSet set)`
Add an option set by cloning an existing set.
`String`
DefaultHelpPrinter.`getCommandLine(OptionSet set, String leadingText, boolean lineBreak)`
Return a string with the command line syntax for the given option set
`String`
HelpPrinter.`getCommandLine(OptionSet set, String leadingText, boolean lineBreak)`
Return a string with the command line syntax for this option set
`String`
DefaultHelpPrinter.`getHelpText(OptionSet set)`
Return the help text describing the different options and data arguments
`String`
HelpPrinter.`getHelpText(OptionSet set)`
Return the help text describing the different options and data arguments