|
Boost Users : |
From: Jason House (jasonhouse_at_[hidden])
Date: 2006-09-16 11:14:56
I recent attempted the equivalent of allowing the follwoing two options:
--help
--help-command [arg]
--help-component [arg]
When I ran the program with --help, I got an error that it was
ambiguous. I didn't realize it, but program options allows the user to
not specify the full string with "--". This then makes all the options
above match --help.
How can I get this type of functionality without getting runtime
errors about ambiguity?
If I were to reduce it to just --help and --help-command, it may be
possible to just do --help with an optional argument, but I don't know
how to do that. Currently, I'd like to avoid a shared namespace for
commands and components.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net