The clever idea to use an ExceptionGroup (the other option having been pytest-check) was courtesy of tpr at koodiklinikka.
Also, turns out the original #279 bug was just a matter of newline padding in the help string; get_short_help_str had been added to Click only some time after I'd written the original plugin CLI code, so no wonder we hadn't used it: https://github.com/pallets/click/pull/869
The clever idea to use an ExceptionGroup (the other option having been pytest-check) was courtesy of tpr at koodiklinikka.
Also, turns out the original #279 bug was just a matter of newline padding in the help string;
get_short_help_str
had been added to Click only some time after I'd written the original plugin CLI code, so no wonder we hadn't used it: https://github.com/pallets/click/pull/869Click 8 is required for
to_info_dict
: https://github.com/pallets/click/pull/1623