Correct the information printed by '/usr/bin/tahoe debug --help' on Debian/Ubuntu. fixes #1441

This commit is contained in:
david-sarah 2011-07-24 09:25:30 -07:00
parent 035dbcadde
commit 0dc917af08

View File

@ -846,7 +846,18 @@ Subcommands:
Please run e.g. 'tahoe debug dump-share --help' for more details on each
subcommand.
"""
# See ticket #1441 for why we print different information when
# run via /usr/bin/tahoe. Note that argv[0] is the full path.
if sys.argv[0] == '/usr/bin/tahoe':
t += """
To get branch coverage for the Tahoe test suite (on the installed copy of
Tahoe), install the 'python-coverage' package and then use:
python-coverage run --branch /usr/bin/tahoe debug trial
"""
else:
t += """
Another debugging feature is that bin%stahoe allows executing an arbitrary
"runner" command (typically an installed Python script, such as 'coverage'),
with the Tahoe libraries on the PYTHONPATH. The runner command name is