From 2afc485b2724f496c67e0660c9c3683c52634515 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 6 Feb 2011 23:02:12 -0500 Subject: Add tests and doc for Brandon's -m flag. --- doc/cmd.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') 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 ` measurement, use the ``--branch`` flag. Otherwise only statement coverage is measured. -- cgit v1.2.1