9 Mar
2005
9 Mar
'05
7:41 a.m.
Alexis H. Rivera-Rios wrote:
According to the documentation the line: desc.add_options() ("debug", po::valuestd::string()->implicit(), "enable debugging" );
enables me to do something like this: myexec --debug
However, if I do that I get an assertion error. The code requires a string so this will work: myexec --debug whatever
What am I doing wrong? Is it me or is it the library?
I think it's the library. But in any case, I plan to remove the 'implicit' flag in 1.33. Why do you want it? What about: desc.add_options() ("debug", bool_option(), "enable debugging") ? - Volodya