Given the following simple use of Boost.Program_Options:
boost::program_options::options_description options("Options");
options.add_options()
("my_bool_flag,b", boost::program_options::value<bool>(), "Sample boolean switch)")
;
... what command-line arguments will evaluate to false
, and what to true
?
(I.e., assume the program is named "foo", and executed on the command line as:
foo -b ?
... with the question mark a placeholder for some other text: What are all possible text options that will properly evaluate to false
, and what to true
?)