|
Boost Users : |
From: Chris Weed (chrisweed_at_[hidden])
Date: 2007-06-10 13:34:48
It looks like the problem is that you didn't specify a boost_po::value for -i.
_generic_options.add_options()
("input-file,i",boost_po::value<std::string>(), "specify input file")
("ops", boost_po::value< std::vector< std::string > >(),
"specify operators " )
;
Chris
On 6/10/07, Jonas Boesch <ml_at_[hidden]> wrote:
> Hi,
>
> On Jun 10, 2007, at 18:04 , Chris Weed wrote:
>
> > Hi,
> > I think the standard command-line format is
> > ./program [args] [positional_args...]
> >
> > Therefore it expects:
> > ./op_test -i non_positional pos0 pos1 pos2
>
> Yes, but this doesn't work either;
> It still thinks non_positional is one of the positional args...
>
> If you run the attached program ( from my last mail ), it will print
> out all options
> recognized as positionals...
>
>
> Greets,
>
> Jonas
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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