Athena::Console::Input::Option
Inherits Reference / Object
Represents a value (or array of ) provided to a command as optional un-ordered flags that be setup to accept a value, or represent a boolean flag. Options can also have an optional shortcut, default value, and/or description.
Options are specified with two dashes, or one dash when using the shortcut.
For example, ./console test --yell --dir=src -v.
We have one option representing a boolean value, providing a value to another, and using the shortcut of another.
Options can be added via the ACON::Command#option method,
or by instantiating one manually as part of an ACON::Input::Definition.
The value of the option could then be accessed via one of the ACON::Input::Interface#option overloads.
See ACON::Input::Interface for more examples on how arguments/options are parsed, and how they can be accessed.
Constructors
Instance methods
Determines what values should be added to the possible suggestions based on the provided input.
Returns the default value of self, if any, converted to the provided type.
Returns true if self is a required argument, otherwise false.
ameba:disable Naming/PredicateName