Commits

Edd Barrett committed c8b4031

use argparse.REMAINDER as suggested by richardn.

  • Participants
  • Parent commits aec8880
  • Branches argparse-collect

Comments (0)

Files changed (1)

File _jitviewer/app.py

     )
 
     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")