2 ms·
I've used click, and I've used argparse. In my view, a nonstandard library needs to be vastly superior to its standard equivalent to justify adding it as a dep
by flyingcircus3 3y ago
I've used click, and I've used argparse. In my view, a nonstandard library needs to be vastly superior to its standard equivalent to justify adding it as a dependency.
Why is click so much better than argparse?
- sheepybloke 3y agoI think the biggest advantage to Click is the ability to namespace different commands to have a single entrypoint for your CLI and all your commands. For example, if you had a hardware test interface and a webserver, you could have something like following: ``` protocli hw-test i2c protocli webserver -p 8888 ``` It also does a great job generating the documentation, defining the commands is easy and robust, and it makes the CLI's more full.