From: Junio C Hamano Date: Thu, 16 Jan 2025 17:24:01 GMT Subject: Re: [PATCH v3 5/6] oddballs: send usage() help text to standard output Message-ID: In-Reply-To: <20250116104219.GC773990@coredump.intra.peff.net> Jeff King writes: >> .... 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.