Browse Source

git-prune: Usage string clean-up, use the 'usage' function

Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
freku045@student.liu.se 19 years ago committed by Junio C Hamano
parent
commit
7ab099d220
  1. 3
      git-prune.sh

3
git-prune.sh

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
#!/bin/sh

USAGE='[-n] [--] [<head>...]'
. git-sh-setup

dryrun=
@ -9,7 +10,7 @@ do @@ -9,7 +10,7 @@ do
case "$1" in
-n) dryrun=-n echo=echo ;;
--) break ;;
-*) echo >&2 "usage: git-prune [ -n ] [ heads... ]"; exit 1 ;;
-*) usage ;;
*) break ;;
esac
shift;

Loading…
Cancel
Save