- All Known Subinterfaces:
ArgsParser
- All Known Implementing Classes:
ArgsParserImpl
,CliContext
public interface Optionable
Provides means to determine context specific information on
Option
instances.-
Method Summary
Modifier and TypeMethodDescriptionString[]
Retrieves an array of the context specific options being configured for the givenOption
instance, being the long option (when set) and the short option (when set), by prepending the according runtime specific short option and long option prefix (if applicable).
-
Method Details
-
toOptions
Retrieves an array of the context specific options being configured for the givenOption
instance, being the long option (when set) and the short option (when set), by prepending the according runtime specific short option and long option prefix (if applicable).- Parameters:
aOption
- TheOption
instance for which to get the configured short and long options.- Returns:
- The array of options being the long option (if not null) and the short option (if not null) with the according context specific prefixes.
-