Docopt is a Python library that automatically generates a command-line interface based on a description in the docstring of the main function. It's known for its simplicity and readability, parsing usage instructions directly from the program's documentation.