Description
dbpatch --version prints the version correctly (e.g., dbpatch 2.1.2) but returns exit code 1 instead of 0.
Steps to Reproduce
dbpatch --version
echo $? # prints 1
Expected Behavior
dbpatch --version should return exit code 0 on success.
Impact
Scripts using set -e or checking exit codes cannot reliably use dbpatch --version to verify installation. Workaround is to use which dbpatch instead.
Observed in dbpatch v2.1.2 running on Ubuntu 24.04 with .NET 8.0 (DOTNET_ROLL_FORWARD=LatestMajor).