Skip to contentSkip to conversation

guilt: Add -h option to show man pages

PATCH In review Eric Lesh 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

Eric Lesh

author
#0 lore raw

PATCH 1/1 guilt: Add -h option to show man pages

From: Eric Lesh <[email protected]>
Date: Thu, 29 Mar 2007 04:38:49 -0700
Subject: [PATCH] guilt: Add -h option to show man pages

git-sh-setup steals the -h|--h* argument and prints the usage message of the command that calls it, which in this case is guilt. Rather than print the unhelpful guilt usage message, call guilt-help on the given command instead.

---
 guilt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
guilt +8 -0
index b1ab5a1..88f5a1b 100755
@@ -9,6 +9,14 @@ GUILT_NAME="Space Rock"
 # we change directories ourselves
 SUBDIRECTORY_OK=1
 
+case $1 in
+	-h|--h|--he|--hel|--help)
+	dir=`dirname $0`
+	shift
+	exec "$dir/guilt-help" "$@"
+	exit
+esac
+
 . git-sh-setup
 
 function guilt_commands
Signature · 1 line
1.5.1-rc1.GIT
#1 lore raw
Quoted 3 lines · Eric Lesh

From: Eric Lesh <[email protected]>
Date: Thu, 29 Mar 2007 04:38:49 -0700
Subject: [PATCH] guilt: Add -h option to show man pages

Thanks for all (4) of the patches. I applied them, and pushed them to kernel.org.

Josef "Jeff" Sipek.

Signature · 1 line
NT is to UNIX what a doughnut is to a particle accelerator.