3 ms·
I've used docopt a ton for core CLI tooling at my last company. IMO its shortcomings outweigh the benefits by a long margin, compared to tools like argparse whi
by shrimpx 5y ago
I've used docopt a ton for core CLI tooling at my last company. IMO its shortcomings outweigh the benefits by a long margin, compared to tools like argparse which make it super hard to understand what the full UI of a tool is. That said, my company did start transitioning to Click because of its nesting/subcommand abilities. I would probably choose Click for a new project, but I do think docopt is still the best for speed of understanding the total interface of a tool. You just read the `__doc__` straight up.