Subject: [Boost-bugs] [Boost C++ Libraries] #3752: No detected unknown parameter
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-11 08:28:38
#3752: No detected unknown parameter
--------------------------------------------+-------------------------------
Reporter: Alex Bukreev <bucreev@â¦> | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: program_options
Version: Boost 1.41.0 | Severity: Problem
Keywords: |
--------------------------------------------+-------------------------------
No detected unknown parameter.
#include <boost/program_options.hpp>
namespace po = boost::program_options;
using namespace std;
int main(int ac, char* av[])
{
po::options_description generic("Generic options");
generic.add_options()
("help", "produce help message")
;
vector<string> argv;
argv.push_back("input file");
po::variables_map vm;
store(po::command_line_parser(argv).
options(generic).run(), vm);
notify(vm);//error not detected
return 0;
}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3752> 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:02 UTC