Class CLIOption


public final class CLIOption extends UIOption<CLIOption>
The CLI option definition.
  • Constructor Details

  • Method Details

    • getText

      public String getText()
      Description copied from class: UIOption
      return a string showing long and short options if they are available. Will return a string.
      Specified by:
      getText in class UIOption<CLIOption>
      Returns:
      A string showing long and short options if they are available. Never null.
    • cleanupName

      protected String cleanupName(org.apache.commons.cli.Option option)
      Description copied from class: UIOption
      Provide means to wrap the given option depending on the UI-specific option implementation.
      Specified by:
      cleanupName in class UIOption<CLIOption>
      Parameters:
      option - The CLI option
      Returns:
      the cleaned up option name.
    • getExample

      public String getExample()
      Description copied from class: UIOption
      Gets an example of how to use this option in the native UI.
      Specified by:
      getExample in class UIOption<CLIOption>
      Returns:
      An example of how to use this option in the native UI.