Modifier and Type | Method and Description |
---|---|
OptionSet |
Options.addSet(java.lang.String name)
Add an option set.
|
OptionSet |
Options.addSet(java.lang.String name,
int data)
Add an option set.
|
OptionSet |
Options.addSet(java.lang.String name,
int minData,
int maxData)
Add an option set.
|
OptionSet |
Options.addSet(java.lang.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(java.lang.String name)
Return an option set - or
null , if no set with the given name exists |
OptionSet |
OptionSet.setDataText(int index,
java.lang.String text)
Set the data text for a data item on the command line.
|
OptionSet |
OptionSet.setHelpText(int index,
java.lang.String text)
Set the help text for a data item on the command line.
|
Modifier and Type | Method and Description |
---|---|
static void |
ExclusiveConstraint.add(OptionSet optionSet,
Options.Multiplicity multiplicity,
java.lang.String... keys)
Add a constraint to the given option set
|
static void |
ExclusiveConstraint.add(OptionSet optionSet,
java.lang.String... keys)
Add a constraint to the given option set using the default multiplicity defined for this set
|
OptionSet |
Options.addSet(java.lang.String name,
OptionSet set)
Add an option set by cloning an existing set.
|
java.lang.String |
DefaultHelpPrinter.getCommandLine(OptionSet set,
java.lang.String leadingText,
boolean lineBreak)
Return a string with the command line syntax for the given option set
|
java.lang.String |
HelpPrinter.getCommandLine(OptionSet set,
java.lang.String leadingText,
boolean lineBreak)
Return a string with the command line syntax for this option set
|
java.lang.String |
DefaultHelpPrinter.getHelpText(OptionSet set)
Return the help text describing the different options and data arguments
|
java.lang.String |
HelpPrinter.getHelpText(OptionSet set)
Return the help text describing the different options and data arguments
|