|
Boost Users : |
Subject: Re: [Boost-users] boost::program_options silent name conflicts
From: Michael Jeung (jeungster_at_[hidden])
Date: 2010-04-29 11:55:18
> That is caused be the ability for you to specify shorter names for the
> longer versions on the command line, for some causes (such as yours),
> you want to disable it. I do not know the command to do that, but it
> was on the mailing list not far back as I recall (probably/hopefully
> in the docs too). I cannot look it up at the moment, on my phone.
Ah, yes - I found it. This solved my problem:
po::store(po::command_line_parser(argc, argv)
.options(desc)
.style(po::command_line_style::default_style ^
po::command_line_style::allow_guessing)
.allow_unregistered()
.run(), vm);
Thanks!
-Michael
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net