Subject: Re: [boost] [program_options] multitoken arguments
From: Carlo Medas (carlomedas_at_[hidden])
Date: 2009-04-06 04:13:30
we've been using latest boost 1.38.0 (testing it on Win, Linux, Mac).
I checked SVN HEAD but it seems to me that there hasn't been recent activity
after 1.38.0, or am I missing something?
Thanks in advance.
On Fri, Apr 3, 2009 at 3:44 PM, Vladimir Prus <vladimir_at_[hidden]>wrote:
> Carlo Medas wrote:
> > Dears,
> > we've been using boost::program_options and it works great.
> > We just found a minor thing, which could be an issue, and I'm reporting
> > to you: when specifying and using a multitoken argument, it actually
> > only if put as last parameter of command line; in any other case, it eats
> > all remaining parameters.
> > My specification is as follows:
> > desc.add_options()
> > ("output,o", bpo::value<std::vector<std::string> >()->multitoken(),
> > output setup for discovery/scan");
> > If then I want to use it like follows, it works:
> >> fing -p1 -p2 -p3 -o 1 2 3
> > But if the user inverts the order, it does not work anymore, meaning that
> > is eaten by -o option.
> >> fing -p1 -p2 -o 1 2 3 -p3
> > Is this a known limitation?
> Yes. Can you try SVN HEAD version -- it should have this fixed.
> - Volodya
> Unsubscribe & other changes: