-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
please see attached GIF demonstrate crash with one dash i.e. to wit if an option is introduced w/ one dash instead of two exception is thrown . below is code executed .
#include <boost\program_options.hpp>
#include <map>
#include <string>
using namespace std;
const string option_flag = "O";
const string option_flag_description = string("an option");
const map<string , string> options__description_map = {
{option_flag, option_flag_description},
};
int main(int argc, const char* argv[], const char* envp[])
{
boost::program_options::variables_map vm;
string macros;
boost::program_options::options_description options_description("bugyCode options");
options_description.add_options()
(option_flag.c_str(), boost::program_options::value<string>(¯os), option_flag_description.c_str());
boost::program_options::store(boost::program_options::parse_command_line(argc, argv, options_description), vm);
boost::program_options::notify(vm);
return 0;
}
Metadata
Metadata
Assignees
Labels
No labels
