
16 Sep
2006
16 Sep
'06
3:14 p.m.
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.