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

[PATCH] shortlog: remove --help option parsing

From
Jonas Fonseca <fonseca@diku.dk>
Date
Oct 1, 2007, 10:20 UTC
Message-ID
<20071001102020.GA8315@diku.dk>
This option is handled globally.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
 builtin-shortlog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-shortlog.c b/builtin-shortlog.c
index 3fe7546..518f27f 100644
--- a/builtin-shortlog.c
+++ b/builtin-shortlog.c
@@ -264,7 +264,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
 			wrap_lines = 1;
 			parse_wrap_args(argv[1], &in1, &in2, &wrap);
 		}
-		else if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help"))
+		else if (!strcmp(argv[1], "-h"))
 			usage(shortlog_usage);
 		else
 			break;
-- 
1.5.3.2.1029.gc1d178


-- 
Jonas Fonseca
Next: Johannes Schindelin
Message 1 of 2 in “shortlog: remove --help option parsing”
  1. shortlog: remove --help option parsingJonas Fonseca, Oct 1, 2007
  2. Johannes SchindelinOct 1, 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.