public class CommandLine.OptionStyle
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
allowClumped(boolean b)
Set whether clumped short options are allowed.
|
void |
allowClumpWithArgument(boolean b)
Set whether a clump may contain an argument.
|
void |
allowDoubleDashShort(boolean b)
Set whether a short option may start with a double dash.
|
void |
allowMixed(boolean b)
Set whether mixed options and parameters are allowed.
|
void |
allowOptionLikeArgument(boolean b)
Set whether an option argument may look like a flag.
|
void |
allowSingleDashLong(boolean b)
Set whether a long option may start with a single dash.
|
void |
allowSlash(boolean b)
Set whether options may start with a slash.
|
boolean |
isClumpedAllowed()
Check whether clumped short options are allowed.
|
boolean |
isClumpWithArgumentAllowed()
Check whether a clump may contain an argument.
|
boolean |
isDoubleDashShortAllowed()
Check whether a short option may start with a double dash.
|
boolean |
isMixedAllowed()
Check whether mixed options and parameters are allowed.
|
boolean |
isOptionLikeArgumentAllowed()
Check whether an option argument may look like a flag.
|
boolean |
isSingleDashLongAllowed()
Check whether a long option may start with a single dash.
|
boolean |
isSlashAllowed()
Check whether options may start with a slash.
|
void |
reset()
Reset this instance to its initial state.
|
public final void reset()
public void allowClumped(boolean b)
b
- yes or nopublic boolean isClumpedAllowed()
public void allowClumpWithArgument(boolean b)
b
- yes or nopublic boolean isClumpWithArgumentAllowed()
public void allowMixed(boolean b)
b
- yes or nopublic boolean isMixedAllowed()
public void allowOptionLikeArgument(boolean b)
Warning: This is false by default, and setting it to true may be less intuitive to the user.
b
- yes or nopublic boolean isOptionLikeArgumentAllowed()
public void allowSlash(boolean b)
Warning: This is false by default, and setting it to true probably gives trouble on Unix-like platforms.
b
- yes or nopublic boolean isSlashAllowed()
public void allowSingleDashLong(boolean b)
b
- yes or nopublic boolean isSingleDashLongAllowed()
public void allowDoubleDashShort(boolean b)
b
- yes or nopublic boolean isDoubleDashShortAllowed()