summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c55c682)
It's behaviour can be surprising.
+ /// Set a flag to true. Note that it cannot set the flag to false, so
+ /// using this parser in combination with a flag that defaults to true
+ /// is useless; the flag will always be true.
fn parse_bool(slot: &mut bool, v: Option<&str>) -> bool {
match v {
Some(..) => false,
fn parse_bool(slot: &mut bool, v: Option<&str>) -> bool {
match v {
Some(..) => false,