An option flag declared on a command.
Instance methods
description
The description used in help output.
Sourcelong
The long flag name without the leading --.
Sourcemax_values
The most values the option accepts per occurrence. Nil means unbounded.
Sourcemin_values
The fewest values the option accepts per occurrence. 0 for flags.
Sourcerepeatable?
true if the option can be given more than once (a Count or Collect).
Sourcerepetition
How the option accumulates across occurrences: None, Count, or Collect.
Sourceshort
The short flag character (if any).
Sourcetakes_value?
true if the option expects at least one value, false for flags.
Sourcevalue_choices
The accepted values for an enum-typed option, in help order. Empty when
the values aren't a fixed set kebab knows (any non-enum, or a custom converter).
Sourcevalue_names
Placeholder names for the option's values, rendered as <name> in help.
Empty for flags.
Sourcevariable?
true if the number of values can vary per occurrence.
Source