title: How to use boost::program_options to accept an optional flag?
body: <p>I need to implement an optional flag, say <code>-f</code>/<code>--flag</code>. Since this is a flag, there is no value associated. In my code I only need to know whether the flag was set or not. What's the proper way to do this using boost::program_options?</p>