Module: Aspera::Cli::Type

Defined in:
lib/aspera/cli/parser.rb

Overview

Type specifiers for the allowed: parameter of option declarations. Public API: STRING_ARRAY, SYMBOL_ARRAY, INTEGER, BOOLEAN, NONE. Internal (do not pass as allowed:):

ENUM   - derived internally when `allowed:` is an Array<Symbol> (enum list)
STRING - the implicit default; equivalent to omitting `allowed:` entirely

Constant Summary collapse

STRING_ARRAY =

Option value is a String or Array of Strings (cumulative)

[Array, String].freeze
SYMBOL_ARRAY =

Option value is a Symbol from a constrained list; use as prefix: SYMBOL_ARRAY + [:val1, :val2]

[Array, Symbol].freeze
INTEGER =

Option value is coerced to Integer

[Integer].freeze
BOOLEAN =

Option value is a Boolean

BoolValue::TYPES
NONE =

Option has no value — it is a flag switch (e.g. -N, --help)

[].freeze
ENUM =

Internal: derived when allowed: is an Array; do not pass directly

[Symbol].freeze
STRING =

Internal: implicit default (String); equivalent to omitting allowed: entirely

[String].freeze