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:
parent
84aeabb272
commit
df4ede7229
1 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue