Jeff King <peff@xxxxxxxx> 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.