[program_options] multiple_occurrences exception

Is there a way to determine which option triggers the multiple_occurences exception to be thrown when calling program_options::store? As an example I have a component that takes a positional --exe argument. It would be nice to know when the exception is throw if --exe had been specified earlier in the command line. Thanks, Sam

Sam Miller wrote:
Is there a way to determine which option triggers the multiple_occurences exception to be thrown when calling program_options::store? As an example I have a component that takes a positional --exe argument. It would be nice to know when the exception is throw if --exe had been specified earlier in the command line.
Sam, I am afraid this is not presently possible. - Volodya

Sam Miller schrieb:
Is there a way to determine which option triggers the multiple_occurences exception to be thrown when calling program_options::store?
There are already Tickets for this issue: https://svn.boost.org/trac/boost/ticket/1274 https://svn.boost.org/trac/boost/ticket/3423

Sascha Ochsenknecht wrote:
Sam Miller schrieb:
Is there a way to determine which option triggers the multiple_occurences exception to be thrown when calling program_options::store?
There are already Tickets for this issue: https://svn.boost.org/trac/boost/ticket/1274 https://svn.boost.org/trac/boost/ticket/3423
Indeed. I have closed the first one as duplicate, because the second one is more complete. - Volodya
participants (3)
-
Sam Miller
-
Sascha Ochsenknecht
-
Vladimir Prus