Interface Optionable

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 Type
    Method
    Description
    toOptions(Option<?> aOption)
    Retrieves an array of the context specific options being configured for the given Option 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

      String[] toOptions(Option<?> aOption)
      Retrieves an array of the context specific options being configured for the given Option 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 - The Option 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.