Author: Edd Barrett <vex...@gmail.com>
Branch: argparse-collect
Changeset: r242:c8b403159a46
Date: 2013-09-03 17:28 +0100
http://bitbucket.org/pypy/jitviewer/changeset/c8b403159a46/

Log:    use argparse.REMAINDER as suggested by richardn.

diff --git a/_jitviewer/app.py b/_jitviewer/app.py
--- a/_jitviewer/app.py
+++ b/_jitviewer/app.py
@@ -232,7 +232,7 @@
     )
 
     parser.add_argument("-l", "--log", help="specify existing logfile")
-    parser.add_argument("-c", "--collect", nargs="*", help="collect logfile 
now", metavar="ARG")
+    parser.add_argument("-c", "--collect", nargs=argparse.REMAINDER, 
help="collect logfile now", metavar="ARG")
     parser.add_argument("-p", "--port", help="select HTTP port", type=int)
     parser.add_argument("-q", "--qt", action="store_true", help="use embedded 
QT browser")
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to