From a0230a93e841edbd099c83018b03a9cc79f0c6c2 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 26 May 2008 17:36:15 +0200 Subject: [PATCH] document test runner options --- runtests.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/runtests.py b/runtests.py index 500ab9b7..d66808d1 100644 --- a/runtests.py +++ b/runtests.py @@ -229,16 +229,21 @@ class CythonRunTestCase(CythonCompileTestCase): if __name__ == '__main__': from optparse import OptionParser parser = OptionParser() - parser.add_option("--no-cython", dest="with_cython", - action="store_false", default=True) parser.add_option("--no-cleanup", dest="cleanup_workdir", - action="store_false", default=True) + action="store_false", default=True, + help="do not delete the generated C files (allows passing --no-cython on next run)") + parser.add_option("--no-cython", dest="with_cython", + action="store_false", default=True, + help="do not run the Cython compiler, only the C compiler") parser.add_option("-C", "--coverage", dest="coverage", - action="store_true", default=False) - parser.add_option("-A", "--annotate-source", dest="annotate_source", - action="store_true", default=False) + action="store_true", default=False, + help="collect source coverage data for the Compiler") + parser.add_option("-A", "--annotate", dest="annotate_source", + action="store_true", default=False, + help="generate annotated HTML versions of the test source files") parser.add_option("-v", "--verbose", dest="verbosity", - action="count", default=0) + action="count", default=0, + help="display test progress, pass twice to print test names") options, cmd_args = parser.parse_args() -- 2.26.2