Boost C++ Libraries: Ticket #3942: Backwards Compatibility break, program_options error with multiple occurrences https://svn.boost.org/trac10/ticket/3942 <p> We recently upgraded a project to 1.42 and noticed that command line parsing has regressed since 1.41. </p> <p> We defined --config and --config-value, with 1.42 we get an error regarding multiple occurrences. In 1.41 this worked without issue. </p> <pre class="wiki">[macvicar@dev457 /tmp] LD_LIBRARY_PATH=/tmp/b142/lib ./a.out --config foo --config-value bar terminate called after throwing an instance of 'boost::exception_detail::clone_impl&lt;boost::exception_detail::error_info_injector&lt;boost::program_options::multiple_occurrences&gt; &gt;' what(): multiple occurrences Aborted [macvicar@dev457 /tmp] LD_LIBRARY_PATH=/tmp/b141/lib ./a.out --config foo --config-value bar config: foo config-value: bar </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3942 Trac 1.4.3 Scott MacVicar <macvicar@…> Wed, 17 Feb 2010 21:50:27 GMT attachment set https://svn.boost.org/trac10/ticket/3942 https://svn.boost.org/trac10/ticket/3942 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-program-options.cpp</span> </li> </ul> <p> Test demonstrating program_options regression </p> Ticket Scott MacVicar <macvicar@…> Wed, 17 Feb 2010 22:04:38 GMT summary changed https://svn.boost.org/trac10/ticket/3942#comment:1 https://svn.boost.org/trac10/ticket/3942#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">BC break, program_options error with multiple occurrences</span> → <span class="trac-field-new">Backwards Compatibility break, program_options error with multiple occurrences</span> </li> </ul> Ticket Vladimir Prus Thu, 18 Feb 2010 09:43:09 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3942#comment:2 https://svn.boost.org/trac10/ticket/3942#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/59744" title="Robustify disambiguation of full/approximate matches. Fixes #3942. ">[59744]</a>) Robustify disambiguation of full/approximate matches. </p> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3942" title="#3942: Bugs: Backwards Compatibility break, program_options error with multiple ... (closed: fixed)">#3942</a>. </p> Ticket anonymous Wed, 01 Sep 2010 05:03:10 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/3942#comment:3 https://svn.boost.org/trac10/ticket/3942#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> Ticket anonymous Wed, 01 Sep 2010 05:04:45 GMT <link>https://svn.boost.org/trac10/ticket/3942#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3942#comment:4</guid> <description> <p> the bugfix is not included in Boost 1.44 see author's comment here <a class="ext-link" href="http://stackoverflow.com/questions/2589668/boostprogram-options-bug-or-feature"><span class="icon">​</span>http://stackoverflow.com/questions/2589668/boostprogram-options-bug-or-feature</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 01 Sep 2010 05:05:59 GMT</pubDate> <title>version, milestone changed https://svn.boost.org/trac10/ticket/3942#comment:5 https://svn.boost.org/trac10/ticket/3942#comment:5 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.42.0</span> → <span class="trac-field-new">Boost 1.44.0</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.43.0</span> → <span class="trac-field-new">Boost 1.44.0</span> </li> </ul> Ticket Vladimir Prus Wed, 01 Sep 2010 06:11:08 GMT <link>https://svn.boost.org/trac10/ticket/3942#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3942#comment:6</guid> <description> <p> Scott, I am confused about your changes to the ticket. For starters, 1.44.0 is already released, so setting milestone to 1.44 is surely wrong (and generally, milestones are for library authors to set). But further, my comment on that site refers to 1.43. The change in question is on the release branch, since 2010-05-14. Therefore, I am not sure what you expect me to do? </p> </description> <category>Ticket</category> </item> <item> <author>macvicar@…</author> <pubDate>Wed, 01 Sep 2010 08:44:15 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3942#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3942#comment:7</guid> <description> <p> I didn't change this, was someone else. </p> <ul><li>Scott </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Wed, 01 Sep 2010 08:53:25 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3942#comment:8 https://svn.boost.org/trac10/ticket/3942#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Oh, sorry. Then I'll just make it fixed again. </p> Ticket