Update git helper usage

This commit is contained in:
Scott Lahteine
2020-01-05 01:24:28 -06:00
parent 31679640c0
commit a484adcb30
5 changed files with 12 additions and 12 deletions

View File

@ -6,7 +6,7 @@
#
usage() {
echo "usage: `basename $0` [1|2] [name]" 1>&2
echo "usage: `basename $0` [1|2|3] [name]" 1>&2
}
[[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { usage; exit 1; }
@ -19,12 +19,12 @@ BRANCH=pr_for_$TARG-$(date +"%G-%m-%d_%H.%M.%S")
# BRANCH can be given as the last argument
case "$#" in
1 ) case "$1" in
1|2) ;;
1|2|3) ;;
*) BRANCH=$1 ;;
esac
;;
2 ) case "$1" in
1|2) BRANCH=$2 ;;
1|2|3) BRANCH=$2 ;;
*) usage ; exit 1 ;;
esac
;;