author | Junio C Hamano <gitster@pobox.com> | |
Thu, 20 Dec 2007 20:58:06 +0000 (12:58 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 20 Dec 2007 20:58:06 +0000 (12:58 -0800) | ||
commit | 5d29275638f48ee442202f0c478d1d8b9d396cc6 | |
tree | 45752dca1baa2d91d35a4d265e7ffd9dc47093d6 | tree | snapshot |
parent | 03270628ed61f56431658eacd335b8f2f8ecc05a | commit | diff |
shell-scripts usage(): consistently exit with non-zero
Earlier conversion of shell scripts to parse-options made usage()
to run "git cmd -h" which in turn emit LONG_USAGE and exit with 0
status. This is inconsistent with the scripts that do not use
parse-options, whose usage() died with the message, exiting with 1.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Earlier conversion of shell scripts to parse-options made usage()
to run "git cmd -h" which in turn emit LONG_USAGE and exit with 0
status. This is inconsistent with the scripts that do not use
parse-options, whose usage() died with the message, exiting with 1.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-sh-setup.sh | diff | blob | history |