public interface OptionHandlerFilter
OptionHandler
.
For example, we use this to let the caller specify which options get printed and which ones don'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 option.
|
Modifier and Type | Method and Description |
---|---|
boolean |
select(OptionHandler o) |
static final OptionHandlerFilter ALL
static final OptionHandlerFilter PUBLIC
This would be useful only when you have 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–2013 Kohsuke Kawaguchi. All rights reserved.