Closed dmd closed 2 years ago
The problem is you've selected action="store_true"
.
You should instead be using the version action action="version"
, which overrides any required arguments.
You will need to prepopulate a formatted string from tide_util.version()
and use it as the value for version=
.
Unfortunately, you can't have a multi-line version. (You can if you set RawDescriptionHelpFormatter
, but that messes up the formatting of the rest of your help, so don't.)
Expected:
rapidtide --version
would return the version number.Got: