Boost C++ Libraries: Ticket #8588: program_options eats parameter instead of reporting previous one missing an argument https://svn.boost.org/trac10/ticket/8588 <p> If a parameter is specified with a mandatory argument, but the argument is omitted, the following parameter is used as the argument instead. For example: </p> <pre class="wiki"> ./test --dump-firmware Invalid command line syntax: the required argument for option '--firmware' is missing. Use --help for help. ./test --dump-firmware --help dumping firmware to file: --help </pre><p> Here, --dump-firmware requires an argument, and "--help" is passed in as the argument. Instead, "--help" should be treated as a parameter (either valid or not) and --dump-firmware should report a missing parameter instead. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8588 Trac 1.4.3 Adam Nielsen <a.nielsen@…> Sat, 18 May 2013 22:04:01 GMT attachment set https://svn.boost.org/trac10/ticket/8588 https://svn.boost.org/trac10/ticket/8588 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">program_options_eat_param.cpp</span> </li> </ul> <p> Example to demonstrate the issue </p> Ticket anonymous Thu, 12 Nov 2015 10:29:21 GMT <link>https://svn.boost.org/trac10/ticket/8588#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8588#comment:1</guid> <description> <p> Can this bug be fixed? It is rather annoying. </p> </description> <category>Ticket</category> </item> </channel> </rss>