Traceback if a command doesn't have a docstring
John Arbash Meinel
john at arbash-meinel.com
Wed Dec 19 15:26:03 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a plugin command that I never wrote a docstring for. Doing "bzr help
command" gives a full traceback with:
File "/Users/jameinel/dev/bzr/bzr.dev/bzrlib/commands.py", line 292, in
get_help_text
raise NotImplementedError("sorry, no detailed help yet for %r" % self.name())
NotImplementedError: sorry, no detailed help yet for 'bench-patience'
this is enough to trigger it:
~/.bazaar/plugins/breakit.py:
from bzrlib import commands
class cmd_no_help(commands.Command):
pass
commands.register_command(cmd_no_help)
bzr help no-help
<Traceback>
This is also unfortunate since we could still document the standard command
line parameters.
John
=:->
affects bzr
status triaged
priority medium
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHaTgLJdeBCYSNAAMRAgsrAKDXUbkESTQkr1N8H50Uf5qcMZTuOACffqRB
deWkjnU71CERaZBgT8EBzTg=
=uS+D
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list