struct

Deadfinder::Completion::Flag

Inherits Struct < Value < Object

One parser.on(...) call, verbatim: the short spec (nil when the option has no short form), the long spec, and the help text.

Constructors

new(short : String | Nil, long : String, desc : String)
Source

Instance methods

clone
Source
copy_with(short _short = @short, long _long = @long, desc _desc = @desc)
Source
desc
long
long_name

"--concurrency=CONCURRENCY" -> "--concurrency"

Source
names

Every spelling, short first, matching the order --help prints them.

Source
short
short_name

"-c CONCURRENCY" -> "-c"; nil when there is no short form.

Source
takes_value?
Source
value_name

The value placeholder, taken from whichever spelling carries it: "-c CONCURRENCY" / "--concurrency=CONCURRENCY" -> "CONCURRENCY". nil for plain switches.

Source