I've declared a boolean flag
DEFINE_bool(coolflag, true, "My cool flag.");
and then want to run my binary with coolflag=false
:
... --coolflag false
but the value of the flag is still true:
cout << FLAGS_coolflag << endl; // outputs 1
I tried false
, False
, 0
, but the value is still 1 (true).
How can I set coolflag=false
?