Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经声明了一个布尔标志
DEFINE_bool(coolflag, true, "My cool flag.");
然后想运行我的二进制文件coolflag=false:
coolflag=false
... --coolflag false
但标志的值仍然为真:
cout << FLAGS_coolflag << endl; // outputs 1
我试过false, False, 0,但值仍然是 1(真)。
false
False
0
我该如何设置coolflag=false?