Boost C++ Libraries: Ticket #11681: Boost 1.59 program_options parsing error https://svn.boost.org/trac10/ticket/11681 <p> With boost-1.59 I am seeing the error with parsing options when the options has the implicit value. With boost-1.58 it is working fine. However I am not sure it this is bug or it is intended in boost. </p> <ul><li>argv=["binaryname", "--port", "5"] </li><li>option port have set default_value=6 and implicit_value=7 </li></ul><p> What should be the value of port after parsing argv? </p> <p> After running parser there is an error "Error parsing command line: too many positional options have been specified on the command line". </p> <p> This problem occurs when running MongoDB test (<a class="ext-link" href="https://github.com/mongodb/mongo/blob/0481c958daeb2969800511e7475dc66986fa9ed5/src/mongo/util/options_parser/options_parser_test.cpp#L753"><span class="icon">​</span>https://github.com/mongodb/mongo/blob/0481c958daeb2969800511e7475dc66986fa9ed5/src/mongo/util/options_parser/options_parser_test.cpp#L753</a> ). With boost 1.58 it is passing. Without setting imlicit_value it is passing fine also with 1.59. </p> <p> Or is this a problem in the test? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11681 Trac 1.4.3 mskalick@… Wed, 30 Sep 2015 10:41:47 GMT <link>https://svn.boost.org/trac10/ticket/11681#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11681#comment:1</guid> <description> <p> Already solved in mailing list - <a class="ext-link" href="http://lists.boost.org/boost-users/2015/09/85096.php"><span class="icon">​</span>http://lists.boost.org/boost-users/2015/09/85096.php</a> </p> <p> So this ticket can be closed. </p> </description> <category>Ticket</category> </item> </channel> </rss>