Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

docopt deserves a link in this thread: https://github.com/docopt/docopt

It’s a magical idea if you haven’t seen it. You just write the help text and it automatically creates the argument parsing code.



Magical is truly the word to describe Docopt. I use it for all Python code I write and have also used the C and C++ variants. I would highly recommend Docopt to anyone writing command-line utilities.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: