git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Lesh <eclesh@ucla.edu>
To: "Josef \"Jeff\" Sipek" <jsipek@cs.sunysb.edu>
Cc: git <git@vger.kernel.org>
Subject: [PATCH guilt] guilt: Add -h option to show man pages
Date: Thu, 29 Mar 2007 05:38:10 -0700	[thread overview]
Message-ID: <1175171890.27597.5.camel@localhost> (raw)

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

             reply	other threads:[~2007-03-29 12:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-29 12:38 Eric Lesh [this message]
2007-03-29 17:24 ` [PATCH guilt] guilt: Add -h option to show man pages Josef Sipek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1175171890.27597.5.camel@localhost \
    --to=eclesh@ucla.edu \
    --cc=git@vger.kernel.org \
    --cc=jsipek@cs.sunysb.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).