From e4d0b3b85e59dbe258a767b120fe5b87e63c0423 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 31 Aug 2017 23:09:41 -0700 Subject: [PATCH] tg.sh: make "tg help st" work The only pre-defined and non-removable command alias is "st" for "status". The abbreviation shows in the "tg help" output. Make "tg help st" show the help for it as expected just as though "tg help status" had been used. Signed-off-by: Kyle J. McKay --- tg.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tg.sh b/tg.sh index 667087d..27dac35 100644 --- a/tg.sh +++ b/tg.sh @@ -1513,6 +1513,10 @@ do_help() _www=1 shift fi + if [ "$1" = "st" ]; then + shift + set -- "status" "$@" + fi if [ -z "$1" ] ; then # This is currently invoked in all kinds of circumstances, # including when the user made a usage error. Should we end up -- 2.11.4.GIT