valohai / valohai-cli

:heavy_dollar_sign: Command line client for Valohai
MIT License
14 stars 8 forks source link

Ensure help texts are shown (and all commands have them) #290

Closed akx closed 1 year ago

akx commented 1 year ago

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

Click 8 is required for to_info_dict: https://github.com/pallets/click/pull/1623