Boost logo

Boost Users :

Subject: Re: [Boost-users] [program_options] Using multitokens
From: daniel (dnettels_at_[hidden])
Date: 2008-11-05 09:18:18


Now I run into another problem with multitoken:
In my code I have the following option:

("modelparams", po::value<vector<double> >()->multitoken(), "some
modelparams")
If I run my program only with
        --modelparams 0.7 1.2 33.0
everything is fine. But now I would like to append another option:
        --modelparams 0.7 1.2 33.0 --otheroption
but get the exception:
"in option 'modelparams ': invalid option value '--otheroption'"

How can I get this right?

Daniel


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