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

[PATCH] git potty: grok 'help' to mean '--help'.

From
Andreas Ericsson <exon@op5.se>
Date
Jan 3, 2006, 09:53 UTC
Message-ID
<20060103095354.25A1C5BA16@nox.op5.se>
Most other scm's understand it, most users expect it and it's an easy fix.
Signed-off-by: Andreas Ericsson <ae@op5.se>
---
 git.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
bd2573445899c427adac66f2b0fe4643461ab280
diff --git a/git.c b/git.c
index e795ddb..5e7da74 100644
--- a/git.c
+++ b/git.c
@@ -244,6 +244,11 @@ int main(int argc, char **argv, char **e
 	for (i = 1; i < argc; i++) {
 		char *arg = argv[i];
 
+		if (!strcmp(arg, "help")) {
+			show_help = 1;
+			continue;
+		}
+
 		if (strncmp(arg, "--", 2))
 			break;
 
-- 
1.0.6-g58e3
Message 1 of 1 in “git potty: grok 'help' to mean '--help'.”
  1. git potty: grok 'help' to mean '--help'.Andreas Ericsson, Jan 3, 2006

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.