Am 05.09.23 um 09:05 schrieb Jeff King: > On Sat, Sep 02, 2023 at 12:12:56PM +0200, René Scharfe wrote: > >> And I don't understand why the callback returns 1 (PARSE_OPT_NON_OPTION) >> on error, but that's a different matter. > > Yeah, that doesn't make sense at all. Actually it does: any non-zero return from a callback is interpreted as an error. "return error(...);" would be shorter, but "error(...); return 1;" is not wrong. Sorry for the noise! René