One more addition:

    boost::tuple<BigInteger, BigInteger> key_pair;

This will not parse your key. You need to do it manually. So your param should be std::string. And than you can tokenize you string. Or you define 2 separate params and let program_options parse them into Integers for you. But I am unsure if this is supported. Probably yes. I am 100% sure program options will not tokenize one param for you. May be only if your key_pair supports construction from a space separted string.


Regards,
Ovanes


On 10/31/07, Ovanes Markarian <om_boost@keywallet.com> wrote:
Hi!



On 10/31/07, chun ping wang <cablepuff@gmail.com> wrote:
HI how would I use program options to accept multiple input.

The thing compiles but when I do DiffieHellman.exe --secert 817 697

I get this error.
C:\CPW\cs_classes>DiffieHellmanEncrypt --secert 817 697
terminate called after throwing an instance of 'boost::program_options::invalid_
option_value'
  what():  in option 'secert': invalid option value '817'

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.



the option is in your case:

--secert="817 697"

Regards,
Ovanes