Closed GoogleCodeExporter closed 9 years ago
This follows the behavior of the Google gflags library
(http://code.google.com/p/google-gflags). In the gflags documentation,
--boolflag=true/false, --boolflag or --noboolflag are the accepted variants.
--noboolflag=value is not a valid variant, so the value is ignored when you
specify the "no" form.
Original comment by dbh@google.com
on 13 Nov 2010 at 8:41
Upon further inspection, it looks like the fact that lines 126 and 128 use
!no for the value of bool typed flags gives the impression that
--noboolflag=value might work. The fact that it does not work is correct,
as the semantics are supposed to be like gflags, but the code should convey
the intent. This is a lightweight rewrite of a subset of gflags
functionality and I'm not familiar with the code, but looking through I
see a few other potential points of divergence (e.g. gflags allows "1",
"t", "true", "y", "yes" for true and "0", "f", "false", "n", "no" for
false when you specify --boolflag=value). Fixing these is not high
priority, though.
Original comment by dbh@google.com
on 14 Nov 2010 at 1:06
Fair enough.
Original comment by aecolley
on 14 Nov 2010 at 4:54
Original issue reported on code.google.com by
aecolley
on 13 Nov 2010 at 2:04Attachments: