docopt: Create Beautiful Command-line Interfaces for Documentation in Python

Writing documentation for your Python script helps others understand how to use your script. However, instead of making them spend some time to find the documentation in your script, wouldn’t it be nice if they can view the documentation in the terminal?

That is when docopt comes in handy. docopt allows you to create beautiful command-line interfaces by passing a Python string. The code above shows how it works.

Link to docopt.

Scroll to Top