public interface OptionHandlerFilter
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 |
|---|---|
static OptionHandlerFilter |
ALL
Print all defined options in the example.
|
static OptionHandlerFilter |
PUBLIC
Print all non-hidden options.
|
static OptionHandlerFilter |
REQUIRED
Print all required options.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
select(OptionHandler o) |
static final OptionHandlerFilter ALL
static final OptionHandlerFilter PUBLIC
This would only be useful with a small number of options.
static final OptionHandlerFilter REQUIRED
boolean select(OptionHandler o)
o - Never null. Internally options (like -r) and arguments (others)
are treated uniformly as OptionHandler.
See OptionDef.isArgument() to distinguish them.Copyright © 2003–2024 Kohsuke Kawaguchi. All rights reserved.