I don't know if it's possible with optparse, but having a default verbosity value would solve the problem, i.e. -v == -v=1
Otherwise, I think it'd be better to set -v as a boolean option and add a new --debug=LEVEL one.
I don't know if it's possible with optparse, but having a default verbosity value would solve the problem, i.e. -v == -v=1
Otherwise, I think it'd be better to set -v as a boolean option and add a new --debug=LEVEL one.