Arg¶
Arg contains a spec and an effective value for a given arg.
Constructors¶
create¶
new val create(
spec': ArgSpec val,
value': (Bool val | String val | I64 val |
U64 val | F64 val | _StringSeq val))
: Arg val^
Parameters¶
Returns¶
- Arg val^
Public Functions¶
spec¶
Returns¶
- ArgSpec val
bool¶
Returns the arg value as a Bool, defaulting to false.
Returns¶
- Bool val
string¶
Returns the arg value as a String, defaulting to empty.
Returns¶
- String val
i64¶
Returns the arg value as an I64, defaulting to 0.
Returns¶
- I64 val
u64¶
Returns the arg value as an U64, defaulting to 0.
Returns¶
- U64 val
f64¶
Returns the arg value as an F64, defaulting to 0.0.
Returns¶
- F64 val
string_seq¶
Returns the arg value as a ReadSeq[String], defaulting to empty.
Returns¶
deb_string¶
Returns¶
- String val