Thread (1 message) 1 message, 1 author, 2025-01-16

Re: [PATCH v3 5/6] oddballs: send usage() help text to standard output

From: Junio C Hamano <hidden>
Date: 2025-01-16 17:24:03

Jeff King [off-list ref] writes:
quoted
....  Some
just do not treat "-h" any specially, and let it take the same error
code paths as a parameter error.
...
quoted
+	show_usage_and_exit_if_asked(argc, argv, var_usage);
 	if (argc != 2)
 		usage(var_usage);
Hmm, what's going on in this one? It does not check "-h" at all.
Yes, this is the one that let the usual error code paths to treat it
as a mere parameter error.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help