3 ms·
I feel like argh and plac preceded/inspired Click. Also, it's not Python but in Nim there is https://github.com/c-blake/cligen https://github.com/c-blake/clige
by cb321 6y ago
I feel like argh and plac preceded/inspired Click.
Also, it's not Python but in Nim there is https://github.com/c-blake/cligen https://github.com/c-blake/cligen which also does spellcheck/typo suggestions, and allows --kebab-case --camelCase or --snake_case for long options, among other bells & whistles.
- onei 6y agoSpell check is something I'd love to see in Click. As complicated as git can be, I always liked the spell check it has for subcommands. As for the different cases, I personally avoid using camel or snake case purely because I don't need to reach for the shift key. Maybe some people like it, but I find it jarring.
- cb321 6y agoAgreed vis a vis SHIFT. cligen also has a global config file [1] to control syntax options like whether '-c=val' requires an '=' (and if it should be '=' or ':', etc.) which has been discussed here, various colorization/help rendering controls, etc. Shell scripts can always export CLIGEN=/dev/null to force more strict and/or default modes. [1] https://github.com/c-blake/cligen/wiki/Example-Config-File https://github.com/c-blake/cligen/wiki/Example-Config-File