Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Shell interpreter for docopt, the command-line interface description language.
Python Shell
branch: develop

This branch is 27 commits ahead, 10 commits behind master

Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE-MIT Update the year in the license file too
MANIFEST.in
README
docopts
docopts.1
setup.py
testcases.docopt
tests.py

README

docopts
=======
Docopts is a shell interpreter for the docopt command line interface description
language, designed to simplify the task of argument parsing in shell scripts.

Installation
------------
Execute the following command in the release directory to install docopts for
all users::

    python setup.py install

If you only wish to install docopts for yourself, use::

    python setup.py install --user

Running docopts
---------------
Docopts reads a command line interface description from standard input and uses
it to parse the arguments passed to it.  If successful, the parsed arguments
are stored in a temporary directory and its location is written to standard
output.  Docopts is commonly invoked as follows:

    args=$(echo "$help" | docopts "$@")

For details, see the man page.

Notes
-----
The docopts version number always matches that of the docopt Python reference
implementation version against which it was built.  As docopt follows semantic
versioning, docopts should work with any docopt release it shares the major
version number with; however, as both  docopts and docopt are in major version
number 0 at the moment, docopts can only be relied to work with an installation
of docopt with the exact same version number.
Something went wrong with that request. Please try again.