[Python-checkins] cpython (2.7): Issue #17203: add long option names to unittest discovery docs.

chris.jerdonek python-checkins at python.org
Fri Feb 22 04:04:54 CET 2013


http://hg.python.org/cpython/rev/f4ccc5aab287
changeset:   82308:f4ccc5aab287
branch:      2.7
parent:      82304:124237eb5de9
user:        Chris Jerdonek <chris.jerdonek at gmail.com>
date:        Thu Feb 21 18:52:12 2013 -0800
summary:
  Issue #17203: add long option names to unittest discovery docs.

files:
  Doc/library/unittest.rst |  18 +++++++++---------
  Misc/NEWS                |   2 ++
  2 files changed, 11 insertions(+), 9 deletions(-)


diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -279,15 +279,15 @@
 
    Verbose output
 
-.. cmdoption:: -s directory
-
-   Directory to start discovery ('.' default)
-
-.. cmdoption:: -p pattern
-
-   Pattern to match test files ('test*.py' default)
-
-.. cmdoption:: -t directory
+.. cmdoption:: -s, --start-directory directory
+
+   Directory to start discovery (``.`` default)
+
+.. cmdoption:: -p, --pattern pattern
+
+   Pattern to match test files (``test*.py`` default)
+
+.. cmdoption:: -t, --top-level-directory directory
 
    Top level directory of project (defaults to start directory)
 
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -918,6 +918,8 @@
 Documentation
 -------------
 
+- Issue #17203: add long option names to unittest discovery docs.
+
 - Issue #13094: add "Why do lambdas defined in a loop with different values
   all return the same result?" programming FAQ.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list