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

Subject: [Boost-bugs] [Boost C++ Libraries] #5464: Problem with implicit value in program options
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-12 23:37:18


#5464: Problem with implicit value in program options
-------------------------------------+--------------------------------------
 Reporter: lcarreon@… | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: implicit |
-------------------------------------+--------------------------------------
 I have created a test program (test_progopts.cpp, please see attachment)
 to familiarize myself with the program options library. I have compiled
 and run the test on Windows.

 In my test program I have two visible options "help,?" and "bool-opt,a"
 and one hidden options "input-file". If I run the test program using the
 following commands, I get my expected result:

   test_progopts -?
   test_progopts --help
   test_progopts -a
   test_progopts --bool-opt
   test_progopts test1.cpp

 However, if I run the test program using these commandc, it fails:

   test_progopts -a test1.cpp
   test_progopts --bool-opt test1.cpp

 I get the error message:

   in option 'bool-opt': invalid bool value

 From this error message, it appears that the implicit value is not
 working. Is my observation valid?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5464>
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