--help output references wrong executable name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-coverage (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
$ 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://
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/
-rwxr-xr-x 1 root root 301 Mar 22 03:34 /usr/bin/
$ diff -u /usr/bin/coverage2 /usr/bin/
--- /usr/bin/coverage2 2013-03-22 03:34:02.000000000 -0700
+++ /usr/bin/
@@ -1,10 +1,10 @@
#! /usr/bin/python
-# EASY-INSTALL-
+# EASY-INSTALL-
__requires__ = 'coverage==3.6'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
- load_entry_
+ load_entry_
)
$ diff -u /usr/bin/coverage2 /usr/bin/
--- /usr/bin/coverage2 2013-03-22 03:34:02.000000000 -0700
+++ /usr/bin/
@@ -1,10 +1,10 @@
#! /usr/bin/python
-# EASY-INSTALL-
+# EASY-INSTALL-
__requires__ = 'coverage==3.6'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
- load_entry_
+ load_entry_
)
$ diff -u /usr/bin/
--- /usr/bin/
+++ /usr/bin/
@@ -1,10 +1,10 @@
#! /usr/bin/python
-# EASY-INSTALL-
+# EASY-INSTALL-
__requires__ = 'coverage==3.6'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
- load_entry_
+ load_entry_
)
$ 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/
usage: coverage <command> [options] [args]
/usr/bin/
usage: coverage <command> [options] [args]
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: python-coverage 3.6-0ubuntu2
ProcVersionSign
Uname: Linux 3.8.0-30-generic x86_64
NonfreeKernelMo
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)
Here I see two issues:
1. /usr/bin/coverage is not installed;
2. "--help output references wrong executable name".
The first should be fixed in the Debian/Ubuntu packaging. The latter should be fixed upstream.