Author: janne.t.harkonen
Date: Wed Nov 26 03:52:06 2008
New Revision: 1134

Modified:
   trunk/tools/robotdiff/robotdiff.py

Log:
use argumenparser to check arg limits

Modified: trunk/tools/robotdiff/robotdiff.py
==============================================================================
--- trunk/tools/robotdiff/robotdiff.py  (original)
+++ trunk/tools/robotdiff/robotdiff.py  Wed Nov 26 03:52:06 2008
@@ -17,7 +17,7 @@

 """Diff Tool for Robot Framework Outputs

-Usage:  robotdiff.py [options] input files
+Usage:  robotdiff.py [options] input_files

 This script compares two or more Robot Framework output files and creates a
 report where possible differences between test case statuses in each file
@@ -75,7 +75,7 @@
     print "Report: %s" % utils.cygpath(diff.close())

 def _process_args(cliargs):
-    ap = utils.ArgumentParser(__doc__)
+    ap = utils.ArgumentParser(__doc__, arg_limits=(2, sys.maxint))
     try:
opts, paths = ap.parse_args(cliargs, unescape='escape', help='help',
                                     check_args=True)

Reply via email to