diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-02-06 23:02:12 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-02-06 23:02:12 -0500 |
commit | 2afc485b2724f496c67e0660c9c3683c52634515 (patch) | |
tree | df91bb766f3836f428e533a9a6907569793e45b4 /doc | |
parent | 50bc61cd0b0a66ec6cc497ea6870765d627fb9be (diff) | |
download | python-coveragepy-git-2afc485b2724f496c67e0660c9c3683c52634515.tar.gz |
Add tests and doc for Brandon's -m flag.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cmd.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst index fa2f0661..ecc24ba1 100644 --- a/doc/cmd.rst +++ b/doc/cmd.rst @@ -66,7 +66,9 @@ command:: Your program runs just as if it had been invoked with the Python command line. Arguments after your file name are passed to your program as usual in -``sys.argv``. +``sys.argv``. Rather than providing a filename, you can use the ``-m`` switch +and specify an importable module name instead, just as you can with the +Python ``-m`` switch. If you want :ref:`branch coverage <branch>` measurement, use the ``--branch`` flag. Otherwise only statement coverage is measured. |