OptionHandler.
For example, we use this to let the caller specify which options are printed, and which ones aren't.
CmdLineParser#printExample(OptionHandlerFilter), CmdLineParser#printUsage(Writer, ResourceBundle, OptionHandlerFilter)
| Modifier and Type | Field and Description |
|---|---|
| public static final OptionHandlerFilter | ALL
Print all defined options in the example. |
| public static final OptionHandlerFilter | PUBLIC
Print all non-hidden options. |
| public static final OptionHandlerFilter |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true to choose this option, false to ignore/discard/disregard it.Never o)null. Internally options (like -r) and arguments (others)
are treated uniformly as OptionHandler.
See OptionDef#isArgument() to distinguish them.
|
| ALL | back to summary |
|---|---|
| public static final OptionHandlerFilter ALL Print all defined options in the example. | |
| PUBLIC | back to summary |
|---|---|
| public static final OptionHandlerFilter PUBLIC Print all non-hidden options. This would only be useful with a small number of options. | |
| REQUIRED | back to summary |
|---|---|
| public static final OptionHandlerFilter REQUIRED Print all required options. | |
| select | back to summary |
|---|---|
public boolean select(OptionHandler<T> o)
| |