瀏覽代碼

hack to handle passthrough args with hyphens

jmelesky 7 年之前
父節點
當前提交
028c9567c9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      punt

+ 1 - 1
punt

@@ -57,7 +57,7 @@ if __name__ == '__main__':
     args = parser.parse_args()
 
     if 'arg' in var(args):
-        run(args.bottle, args.app, args.arg)
+        run(args.bottle, args.app, [ x.lstrip() for x in args.arg])
     else:
         run(args.bottle, args.app, [])