git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH guilt] guilt: Add -h option to show man pages
@ 2007-03-29 12:38 Eric Lesh
  2007-03-29 17:24 ` Josef Sipek
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Lesh @ 2007-03-29 12:38 UTC (permalink / raw)
  To: Josef "Jeff" Sipek; +Cc: git

From: Eric Lesh <eclesh@ucla.edu>
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.

Signed-off-by: Eric Lesh <eclesh@ucla.edu>
---
 guilt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/guilt b/guilt
index b1ab5a1..88f5a1b 100755
--- a/guilt
+++ b/guilt
@@ -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
-- 
1.5.1-rc1.GIT

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH guilt] guilt: Add -h option to show man pages
  2007-03-29 12:38 [PATCH guilt] guilt: Add -h option to show man pages Eric Lesh
@ 2007-03-29 17:24 ` Josef Sipek
  0 siblings, 0 replies; 2+ messages in thread
From: Josef Sipek @ 2007-03-29 17:24 UTC (permalink / raw)
  To: Eric Lesh; +Cc: Josef Jeff Sipek, git

On Thu, Mar 29, 2007 at 05:38:10AM -0700, Eric Lesh wrote:
> From: Eric Lesh <eclesh@ucla.edu>
> 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.

-- 
NT is to UNIX what a doughnut is to a particle accelerator.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-29 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-29 12:38 [PATCH guilt] guilt: Add -h option to show man pages Eric Lesh
2007-03-29 17:24 ` Josef Sipek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).