summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
authorBambu <564972+bambu@users.noreply.github.com>2020-11-11 15:14:15 -0500
committerBambu <564972+bambu@users.noreply.github.com>2020-11-11 15:14:15 -0500
commitc77c240ce02c81973b57da322082da51b9bc08d2 (patch)
tree729222d615af14bfa5b8246bb59dfe9964ea141d /cmd2
parent97396ff8e4e1fbbd92e905dcae6646b3e33ae031 (diff)
downloadcmd2-git-c77c240ce02c81973b57da322082da51b9bc08d2.tar.gz
specifying is not none on coditions
Diffstat (limited to 'cmd2')
-rw-r--r--cmd2/cmd2.py4
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