summaryrefslogtreecommitdiff
path: root/nose/config.py
diff options
context:
space:
mode:
authorjpellerin <devnull@localhost>2009-04-27 20:15:57 -0400
committerjpellerin <devnull@localhost>2009-04-27 20:15:57 -0400
commit72ac4a0dcc89eb45290d6356fcfa65894c1918c5 (patch)
tree6d210ec2927fd3d7d469910c7e4b94e2a4b6746f /nose/config.py
parent5b088a1f4b8ffea86b98a70d67077426700acda3 (diff)
downloadnose-72ac4a0dcc89eb45290d6356fcfa65894c1918c5.tar.gz
Improved option help display, some whitespace cleanups
Diffstat (limited to 'nose/config.py')
-rw-r--r--nose/config.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/nose/config.py b/nose/config.py
index 2839f8a..672e85c 100644
--- a/nose/config.py
+++ b/nose/config.py
@@ -404,6 +404,7 @@ class Config(object):
help="Be more verbose. [NOSE_VERBOSE]")
parser.add_option(
"--verbosity", action="store", dest="verbosity",
+ metavar='VERBOSITY',
type="int", help="Set verbosity; --verbosity=2 is "
"the same as -v")
parser.add_option(
@@ -433,6 +434,7 @@ class Config(object):
default=self.testMatchPat)
parser.add_option(
"--tests", action="store", dest="testNames", default=None,
+ metavar='NAMES',
help="Run these tests (comma-separated list). This argument is "
"useful mainly from configuration files; on the command line, "
"just pass the tests to run as additional arguments with no "
@@ -446,21 +448,23 @@ class Config(object):
"nose.selector. Separate multiple names with a comma.")
parser.add_option(
"--debug-log", dest="debugLog", action="store",
- default=self.debugLog,
+ default=self.debugLog, metavar="FILE",
help="Log debug messages to this file "
"(default: sys.stderr)")
parser.add_option(
"--logging-config", "--log-config",
dest="loggingConfig", action="store",
- default=self.loggingConfig,
+ default=self.loggingConfig, metavar="FILE",
help="Load logging config from this file -- bypasses all other"
" logging config settings.")
parser.add_option(
"-e", "--exclude", action="append", dest="exclude",
+ metavar="REGEX",
help="Don't run tests that match regular "
"expression [NOSE_EXCLUDE]")
parser.add_option(
"-i", "--include", action="append", dest="include",
+ metavar="REGEX",
help="This regular expression will be applied to files, "
"directories, function names, and class names for a chance "
"to include additional tests that do not match TESTMATCH. "