[Checkins] SVN: z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/runner.py Add an usage.

Sylvain Viollon sylvain at infrae.com
Wed Jan 28 07:07:48 EST 2009


Log message for revision 95299:
  Add an usage.
  
  

Changed:
  U   z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/runner.py

-=-
Modified: z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/runner.py
===================================================================
--- z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/runner.py	2009-01-28 11:59:58 UTC (rev 95298)
+++ z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/runner.py	2009-01-28 12:07:47 UTC (rev 95299)
@@ -2,8 +2,20 @@
 import sys
 import os.path
 
+def usage():
+    print """
+usage: %s [OPTIONS]
+
+All given options will be passed to each test runner. To know which
+options you can use, refer to the test runner documentation.
+""" % sys.argv[0]
+
 def main(*scripts):
     failed = dict()
+    argv = sys.argv[1:]
+    if '-h' in argv or '--help' in argv:
+        usage()
+        return
 
     for script in scripts:
         print "Running %s" % os.path.basename(script)



More information about the Checkins mailing list