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

[TG PATCH] depend: Fix help listing

From
Jonas Fonseca <fonseca@diku.dk>
Date
Sep 25, 2008, 10:50 UTC
Message-ID
<20080925105039.GA12949@diku.dk>

Without this `tg help depend` causes all kinds of trouble such as adding empty lines to .topdeps.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
 tg-depend.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tg-depend.sh b/tg-depend.sh
index af78808..498eec4 100644
--- a/tg-depend.sh
+++ b/tg-depend.sh
@@ -9,6 +9,10 @@ name=
 ## Parse options
 
 subcmd="$1"; shift
+[ "$subcmd" = "-h" ] && {
+	echo "Usage: tg [...] depend add NAME" >&2
+	exit 1
+}
 [ "$subcmd" = "add" ] || die "unknown subcommand ($subcmd)"
 
 while [ -n "$1" ]; do
-- 
tg: (212809f..) jf/depend-help (depends on: master)

-- 
Jonas Fonseca
Message 1 of 1 in “depend: Fix help listing”
  1. depend: Fix help listingJonas Fonseca, Sep 25, 2008

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.