Re: [PATCH v3 5/6] oddballs: send usage() help text to standard output
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 16, 2025, 17:24 UTC
- Message-ID
- <xmqq7c6uu0y6.fsf@gitster.g>
- In-Reply-To
- <20250116104219.GC773990@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 9 quoted lines
>> .... Some >> just do not treat "-h" any specially, and let it take the same error >> code paths as a parameter error. > ... >> + 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.