daniel wrote:
Now I run into another problem with multitoken: In my code I have the following option:
("modelparams", po::value
()->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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I think this is a problem with the program options. Once multitoken is defined, the program options tried to read everything after the option as part of the option. For example: --config file.txt bob fish If another option is placed after the multitoken, program option doesn't interpret it as another option but part of the multitoken. For example: --config file.txt bob fish --send 23 Program options read the above line as all part of the --config option. Shouldn't multitoken read tokens until the next option is found? Ryan