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
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?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at