Public bug reported:
$ python-coverage --help
Coverage.py, version 3.6
Measure, collect, and report on code coverage in Python programs.
usage: coverage <command> [options] [args]
Commands:
annotate Annotate source files with execution information.
combine Combine a number of data files.
erase Erase previously collected coverage data.
help Get help on using coverage.py.
html Create an HTML report.
report Report coverage stats on modules.
run Run a Python program and measure code execution.
xml Create an XML report of coverage results.
Use "coverage help <command>" for detailed help on any command.
Use "coverage help classic" for help on older command syntax.
For more information, see http://nedbatchelder.com/code/coverage
Based on the above, I should be able to call "coverage help":
$ coverage help
coverage: command not found
The help output should reference the correct script name (in this case
python-coverage) or even better yet, the name under which the script was
called, since the package provides three different names for the same
executable:
$ dpkg -L python-coverage | grep bin/ | xargs ls -l
-rwxr-xr-x 1 root root 303 Mar 22 03:34 /usr/bin/coverage2
-rwxr-xr-x 1 root root 309 Mar 22 03:34 /usr/bin/coverage-2.7
-rwxr-xr-x 1 root root 301 Mar 22 03:34 /usr/bin/python-coverage
$ diff -u /usr/bin/coverage2 /usr/bin/python-coverage
--- /usr/bin/coverage2 2013-03-22 03:34:02.000000000 -0700
+++ /usr/bin/python-coverage 2013-03-22 03:34:02.000000000 -0700
@@ -1,10 +1,10 @@
#! /usr/bin/python
-# EASY-INSTALL-ENTRY-SCRIPT: 'coverage==3.6','console_scripts','coverage2'
+# EASY-INSTALL-ENTRY-SCRIPT: 'coverage==3.6','console_scripts','coverage'
__requires__ = 'coverage==3.6'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
- load_entry_point('coverage==3.6', 'console_scripts', 'coverage2')()
+ load_entry_point('coverage==3.6', 'console_scripts', 'coverage')()
)
$ diff -u /usr/bin/coverage2 /usr/bin/coverage-2.7
--- /usr/bin/coverage2 2013-03-22 03:34:02.000000000 -0700
+++ /usr/bin/coverage-2.7 2013-03-22 03:34:02.000000000 -0700
@@ -1,10 +1,10 @@
#! /usr/bin/python
-# EASY-INSTALL-ENTRY-SCRIPT: 'coverage==3.6','console_scripts','coverage2'
+# EASY-INSTALL-ENTRY-SCRIPT: 'coverage==3.6','console_scripts','coverage-2.7'
__requires__ = 'coverage==3.6'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
- load_entry_point('coverage==3.6', 'console_scripts', 'coverage2')()
+ load_entry_point('coverage==3.6', 'console_scripts', 'coverage-2.7')()
)
$ diff -u /usr/bin/python-coverage /usr/bin/coverage-2.7
--- /usr/bin/python-coverage 2013-03-22 03:34:02.000000000 -0700
+++ /usr/bin/coverage-2.7 2013-03-22 03:34:02.000000000 -0700
@@ -1,10 +1,10 @@
#! /usr/bin/python
-# EASY-INSTALL-ENTRY-SCRIPT: 'coverage==3.6','console_scripts','coverage'
+# EASY-INSTALL-ENTRY-SCRIPT: 'coverage==3.6','console_scripts','coverage-2.7'
__requires__ = 'coverage==3.6'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
- load_entry_point('coverage==3.6', 'console_scripts', 'coverage')()
+ load_entry_point('coverage==3.6', 'console_scripts', 'coverage-2.7')()
)
$ for E in $(dpkg -L python-coverage | grep bin/); do echo ${E}; ${E} --help |
grep usage; done
/usr/bin/coverage2
usage: coverage <command> [options] [args]
/usr/bin/python-coverage
usage: coverage <command> [options] [args]
/usr/bin/coverage-2.7
usage: coverage <command> [options] [args]
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: python-coverage 3.6-0ubuntu2
ProcVersionSignature: Ubuntu 3.8.0-30.44-generic 3.8.13.6
Uname: Linux 3.8.0-30-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8.4
Architecture: amd64
Date: Fri Sep 13 11:27:32 2013
InstallationDate: Installed on 2009-12-21 (1361 days ago)
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
MarkForUpload: True
SourcePackage: python-coverage
UpgradeStatus: Upgraded to raring on 2013-04-26 (140 days ago)
** Affects: python-coverage (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug raring
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1225140
Title:
--help output references wrong executable name
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-coverage/+bug/1225140/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs