running error boost program options. running command such prog --opt arg1 --opt arg2
.
it returns error
option '--opt' cannot specified more once.
is there way use option name more once?
currently have program option defined such , has no default value. interested in figuring out way specify use of option name several times
po::value<std::string>()
from http://www.radmangames.com/programming/how-to-use-boost-program_options:
specify option can specified multiple times
--option <value1> --option <value2> --option <value3>
("option", po::value<std::vector<arg_type> >(), "a list of values")
Comments
Post a Comment