Re: [Boost-bugs] [Boost C++ Libraries] #5464: Problem with implicit value in program options

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5464: Problem with implicit value in program options
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-18 05:39:59


#5464: Problem with implicit value in program options
--------------------------------------+-------------------------------------
  Reporter: lcarreon@… | Owner: vladimir_prus
      Type: Support Requests | Status: new
 Milestone: To Be Determined | Component: program_options
   Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords: implicit
--------------------------------------+-------------------------------------
Changes (by vladimir_prus):

  * type: Bugs => Support Requests

Comment:

 I think the library is behaving at it should. Implicit makes the option
 accept zero tokens. However, the option will still accept a token if one
 is provided. Your command line has:

     --bool-opt test1.cpp

 and test1.cpp is treated as value for --bool-opt. You can use bool_switch
 function to create optin that never accepts parameters.

 Does this answer your question?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5464#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC