Added fix to statetable that has it not add a state-help entry if there is no __doc__ string.

This is useful if one overwrites a global command but wants to retain its original help entry.
/Griatch
This commit is contained in:
Griatch 2009-10-15 11:09:40 +00:00
parent 84aeabb272
commit df4ede7229

View file

@ -270,6 +270,13 @@ class StateHelpIndex(object):
if not self.help_index.has_key(state):
return
if not help_text:
# if there is no doc-string, we don't
# create any help entry. This can be useful
# when overwriting global commands but want
# to retain their doc-strings.
return
# produce nicely formatted help entries, taking markup
# into account.
topics = helpsystem.edithelp.format_help_entry(topicstr,