fix(tools/git): -h/--help now exits 0 across 7 wrappers (#702)
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful

This commit was merged in pull request #702.
This commit is contained in:
2026-07-11 09:23:46 +00:00
parent 4df38f7e81
commit a99aded26d
8 changed files with 67 additions and 14 deletions

View File

@@ -72,7 +72,7 @@ Examples:
$(basename "$0") -t "Fix login bug" -l "bug,priority-high"
$(basename "$0") -t "Add dark mode" -b "Implement theme switching" -m "0.2.0"
EOF
exit 1
exit "${1:-1}"
}
# Parse arguments
@@ -95,7 +95,7 @@ while [[ $# -gt 0 ]]; do
shift 2
;;
-h|--help)
usage
usage 0
;;
*)
echo "Unknown option: $1" >&2