Nicolino::Commands::Command
Inherits Polydocopt::Command < Struct < Value < Object
Base for command structs
Constructors
new(options)
SourceClass methods
resolve_verbosity(options : Hash(String, String | Int32 | Bool | Array(String) | Nil), default : Int32) : Int32
Resolve verbosity from parsed options.
Note: docopt represents a flag in a [-q|-v <level>] group as
Int32 (0 when absent, 1 when given), and 0 is truthy in Crystal,
so neither a plain truthiness test nor == true works here.
Instance methods
run
Source