3 ms·
Docopt is a killer arg parser for build scripts. I drop a doc-string like this one in every build script and get the command line interfaces for free: """
by Rotareti 7y ago
Docopt is a killer arg parser for build scripts.
I drop a doc-string like this one in every build script and get the command line interfaces for free:
"""
Install:
pipenv install --dev
Usage:
make.py [<command>] [options]
Commands:
build Build wheel.
push Push wheel to pypi.
test Run tests.
bump Run interacitve bump sequence.
git Run interactive git sequence.
Options:
-h, --help Show this screen.
"""