docopt / docopt.cpp

C++11 port of docopt
Boost Software License 1.0
1.05k stars 146 forks source link

make `-v` print version string the same as `--version` #30

Closed amosbird closed 8 years ago

amosbird commented 9 years ago

Currently -v doesn't work if we enable version string.

jaredgrubb commented 8 years ago

I just tried this on the official docopt version (https://github.com/docopt/docopt.git) and it does not have this behavior. In some ways it makes sense -- although '-v' is sometimes used as a "verbose" flag as well, so this could break things.

We try to maintain behavior parity with the official version, so unless that one changes, we cant make this change in the cpp version. You can suggest this patch there and if accepted there, we can merge it here too.