Package org.daisy.cli

Class AbstractUI.OptionalArgument

Enclosing class:
AbstractUI

public static class AbstractUI.OptionalArgument extends AbstractUI.Argument
Provides the information needed by an optional argument.
Author:
Joel HÃ¥kansson
  • Constructor Details

    • OptionalArgument

      public OptionalArgument(String name, String description, String defaultValue)
      Creates a new optional argument
      Parameters:
      name - the name of the argument
      description - the description of the argument
      defaultValue - the default value for the argument
    • OptionalArgument

      public OptionalArgument(String name, String description, List<AbstractUI.Definition> values, String defaultValue)
      Creates a new optional argument with a finite list of acceptable values.
      Parameters:
      name - the name of the argument
      description - the description of the argument
      values - the list of acceptable values
      defaultValue - the default value for the argument
  • Method Details

    • getDefault

      public String getDefault()
      Gets the default value.
      Returns:
      returns the default value for the argument