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

[PATCH] help: Add a missing OPT_END().

From
Christian Couder <chriscool@tuxfamily.org>
Date
Apr 2, 2008, 03:47 UTC
Message-ID
<20080402054741.24d95299.chriscool@tuxfamily.org>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 help.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
	Some comments in "parse-options.h" say it is needed,
	though I did not see a crash without it.
diff --git a/help.c b/help.c
index ecaca77..10298fb 100644
--- a/help.c
+++ b/help.c
@@ -30,6 +30,7 @@ static struct option builtin_help_options[] = {
 			HELP_FORMAT_WEB),
 	OPT_SET_INT('i', "info", &help_format, "show info page",
 			HELP_FORMAT_INFO),
+	OPT_END(),
 };
 
 static const char * const builtin_help_usage[] = {
-- 
1.5.5.rc2.6.gf58d
Next: Jeff King
Message 1 of 3 in “help: Add a missing OPT_END().”
  1. help: Add a missing OPT_END().Christian Couder, Apr 2, 2008
  2. Jeff KingApr 2, 2008
  3. Junio C HamanoApr 2, 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.