class
Argy::Float64Flag
- Argy::Float64Flag
- Argy::Flag
- Reference
- Object
Defined in:
argy/flag.crConstructors
Instance Method Summary
- #default : Float64
-
#reset! : Nil
Reset the flag to its declared default and clear changed-state.
-
#set_from_string(raw : String) : Nil
Set the flag value from a raw string; raises InvalidFlagValueError on failure
-
#type_label : String
The type label shown in help (e.g.
- #value : Float64
- #value=(value : Float64)
-
#value_string : String
Human-readable current value (used in help output)
Instance methods inherited from class Argy::Flag
changed : Bool
changed,
changed=(changed : Bool)
changed=,
name : String
name,
reset! : Nil
reset!,
set_from_string(raw : String) : Nil
set_from_string,
shorthand : Char | Nil
shorthand,
type_label : String
type_label,
usage : String
usage,
value_string : String
value_string
Constructor methods inherited from class Argy::Flag
new(name : String, shorthand : Char | Nil, usage : String)
new
Constructor Detail
Instance Method Detail
def reset! : Nil
#
Description copied from class Argy::Flag
Reset the flag to its declared default and clear changed-state.
def set_from_string(raw : String) : Nil
#
Description copied from class Argy::Flag
Set the flag value from a raw string; raises InvalidFlagValueError on failure
def type_label : String
#
Description copied from class Argy::Flag
The type label shown in help (e.g. "string", "int")
def value_string : String
#
Description copied from class Argy::Flag
Human-readable current value (used in help output)