diff options
author | buck <buck.2019@gmail.com> | 2014-10-15 12:04:05 -0700 |
---|---|---|
committer | buck <buck.2019@gmail.com> | 2014-10-15 12:04:05 -0700 |
commit | a3cb81edd6053a273447ba3821655320ed234a41 (patch) | |
tree | 8a1a84f15ccace44c409d297f7350a4b3f1cb3a7 /coverage/cmdline.py | |
parent | c2f80902e35e5e4f638d66d1a1996e1ba6dca642 (diff) | |
download | python-coveragepy-git-a3cb81edd6053a273447ba3821655320ed234a41.tar.gz |
make --source and -m play nice together
--HG--
branch : __main__-support
extra : rebase_source : c9ca9fddecafddd5ef4db9cc64ca1c0972130aab
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r-- | coverage/cmdline.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py index e7efe5c4..a80d1168 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -519,9 +519,10 @@ class CoverageScript(object): # Set the first path element properly. old_path0 = sys.path[0] + main_module = args[0] if options.module else None # Run the script. - self.coverage.start() + self.coverage.start(main_module=main_module) code_ran = True try: if options.module: |