Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Originally reported by Ben Finney (Bitbucket: bignose, GitHub: bignose)
The program name, for use in the help message, is derived from the command-line arguments — except when the command-line shows the program is the main module of a package.
self.program_name = os.path.basename(sys.argv)
if self.program_name == '__main__.py':
self.program_name = 'coverage'
The name ‘coverage’ is hard-coded, regardless of what the package actually is.
Instead, when the command-line first argument shows the program was invoked as a package, the package name should be used for the program name.
The text was updated successfully, but these errors were encountered:
Original comment by Ben Finney (Bitbucket: bignose, GitHub: bignose)
This patch implements a proposed improvement for this bug.
I am not able to figure out how to get the tests running, so I have written test cases that I hope demonstrate the problem and test the implementation.
Sorry, something went wrong.
Applied in 975306de6b68 (bb) and fixed in 822e09154bb7 (bb). Thanks :)
This has shipped in 4.4.2
No branches or pull requests