diff options
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r-- | coverage/cmdline.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py index 8ddb5a45..a6844467 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -126,10 +126,10 @@ class CoverageScript: if not args: help_fn("Nothing to do.") return ERR - # Create the runtime environment the script on the cmdline expects. - sys.argv = args + + # Run the script. self.coverage.start() - run_python_file(sys.argv[0]) + run_python_file(args[0], args) self.coverage.stop() if settings.get('combine'): |