From 52853c0a7ab3a953a7cb80e4f6692fdf3182bf93 Mon Sep 17 00:00:00 2001 From: roryquinlan Date: Mon, 1 Feb 2016 18:32:55 -0500 Subject: [PATCH] Allow passing of arbitrary arguments to target file --- cprofilev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cprofilev.py b/cprofilev.py index e76cb15..4dc4c28 100755 --- a/cprofilev.py +++ b/cprofilev.py @@ -188,7 +188,7 @@ def main(): help='The python script file to run and profile.', metavar="scriptfile") - args = parser.parse_args() + args, remaining_argv = parser.parse_known_args() if not sys.argv[1:]: parser.print_help() sys.exit(2)