Re: [PATCH] rev-parse: have --parseopt callers exit 0 on --help
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 17, 2026, 17:06 UTC
- Message-ID
- <xmqqv7eul71y.fsf@gitster.g>
- In-Reply-To
- <20260317145543.GA1828@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I agree with the general idea that "-h" usually should exit 0.
Yes.
> But this > is not just a bug fix for --parseopt, but a change in overall intent. It > might be worth digging in the commit history or list archive to see if > there's any discussion on why we are using 129 in the first place.
And if it turns out that old discussion was convincing enough, I'd prefer to see us moving to --help/-h exiting with 0 eventually. I do not mind doing so at the Git 3.0 boundary, if an excuse to make a big change is needed ;-)