Skip to content

enum Athena::Console::Input::Argument::Mode #

Represents the possible modes of an ACON::Input::Argument, that describe the "type" of the argument.

Modes can also be combined using the Enum.flags macro. For example, ACON::Input::Argument::Mode.flags REQUIRED, IS_ARRAY which defines a required array argument.

Members#

REQUIRED = 1 #

Represents a required argument that MUST be provided. Otherwise the command will not run.

OPTIONAL = 2 #

Represents an optional argument that could be omitted.

IS_ARRAY = 4 #

Represents an argument that accepts a variable amount of values. Arguments of this type must be last.

Methods#

#is_array? #

View source

#none? #

View source

#optional? #

View source

#required? #

View source