diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index dd1f4866..f7d1fc2a 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -3157,11 +3157,11 @@ class Cmd(cmd.Cmd): self.poutput(completer.format_help(tokens), end='') # If there is a help func delegate to do_help - elif help_func: + elif help_func is not None: super().do_help(args.command) # If there's no help_func __doc__ then format and output it - elif func and func.__doc__: + elif func is not None and func.__doc__ is not None: self.poutput(pydoc.getdoc(func)) # If there is no help information then print an error |