Boost C++ Libraries: Ticket #5656: Support options without '=' https://svn.boost.org/trac10/ticket/5656 <p> parse_config_file throws invalid_syntax when a line doesn't contain '=' But for bool options, a '=' should not be required. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5656 Trac 1.4.3 Vladimir Prus Tue, 28 Jun 2011 14:37:49 GMT <link>https://svn.boost.org/trac10/ticket/5656#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5656#comment:1</guid> <description> <p> Options without = just look weird. </p> <p> Also, please don't set milestones when filing issues. </p> </description> <category>Ticket</category> </item> <item> <author>olafvdspek@…</author> <pubDate>Tue, 28 Jun 2011 14:40:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5656#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5656#comment:2</guid> <description> <p> I'm trying to parse an existing format, so I don't get to decide what's valid and what's not. </p> </description> <category>Ticket</category> </item> <item> <author>uniwangshan@…</author> <pubDate>Mon, 03 Dec 2012 16:58:54 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5656#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5656#comment:3</guid> <description> <p> I second this request. I'm trying to replace a 3rd party parsing library using boost::program_options, but the original config has comments starting with ; rather than #. </p> <p> for example: ; this is a comment </p> <p> Because program_options hardcoded # as comment and won't allow any line without = except sections, I had to abort this plan. </p> <p> It would be much better to ignore weird looking lines rather than stop the whole parsing. </p> </description> <category>Ticket</category> </item> <item> <author>rhys.ulerich@…</author> <pubDate>Tue, 05 Mar 2013 20:19:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5656#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5656#comment:4</guid> <description> <p> I'll third this request. Options created using <code>boost::program_options::bool_value</code> should not require a trailing equals sign when using <code>parse_config_file</code>. If <code>--flagname=</code> is a parse error for such an option according to <code>command_line_parser</code>, then <code>flagname=</code> should not be required by <code>parse_config_file</code>. </p> </description> <category>Ticket</category> </item> </channel> </rss>