class

Argy::FlagSet

Inherits Reference < Object

FlagSet holds a named collection of flags and knows how to parse argv tokens. Each Command has two FlagSets: one for local flags and one for persistent flags.

Instance methods

bool(name : String, shorthand : Char | Nil, default : Bool, usage : String) : BoolFlag
Source
each

Iterate over every registered flag

Source
empty?
Source
float(name : String, shorthand : Char | Nil, default : Float64, usage : String) : Float64Flag
Source
int(name : String, shorthand : Char | Nil, default : Int32, usage : String) : IntFlag
Source
lookup(name : String) : Flag | Nil
Source
lookup_shorthand(ch : Char) : Flag | Nil
Source
parse(args : Array(String), remaining : Array(String), extra : Hash(String, Flag) = {} of String => Flag, ignore_unknown : Bool = false) : Nil
Source
reset!
Source
string(name : String, shorthand : Char | Nil, default : String, usage : String) : StringFlag
Source