Package org.kohsuke.args4j
Interface OptionHandlerFilter
- All Known Implementing Classes:
ExampleMode
public interface OptionHandlerFilter
Selects
OptionHandler
.
For example, we use this to let the caller specify which options are printed, and which ones aren't.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OptionHandlerFilter
Print all defined options in the example.static final OptionHandlerFilter
Print all non-hidden options.static final OptionHandlerFilter
Print all required options. -
Method Summary
-
Field Details
-
ALL
Print all defined options in the example. -
PUBLIC
Print all non-hidden options.This would only be useful with a small number of options.
-
REQUIRED
Print all required options.
-
-
Method Details
-
select
- Parameters:
o
- Nevernull
. Internally options (like-r
) and arguments (others) are treated uniformly asOptionHandler
. SeeOptionDef.isArgument()
to distinguish them.- Returns:
- true to choose this option, false to ignore/discard/disregard it.
-