git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH guilt] guilt: Add -h option to show man pages

From
ELEric Lesh <eclesh@ucla.edu>
Date
Mar 29, 2007, 12:38 UTC
Message-ID
<1175171890.27597.5.camel@localhost>
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
Next: Josef Sipek
Message 1 of 2 in “guilt: Add -h option to show man pages”
  1. guilt: Add -h option to show man pagesEric Lesh, Mar 29, 2007
  2. Josef SipekMar 29, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.