We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97396ff commit c77c240Copy full SHA for c77c240
cmd2/cmd2.py
@@ -3157,11 +3157,11 @@ def do_help(self, args: argparse.Namespace) -> None:
3157
self.poutput(completer.format_help(tokens), end='')
3158
3159
# If there is a help func delegate to do_help
3160
- elif help_func:
+ elif help_func is not None:
3161
super().do_help(args.command)
3162
3163
# If there's no help_func __doc__ then format and output it
3164
- elif func and func.__doc__:
+ elif func is not None and func.__doc__ is not None:
3165
self.poutput(pydoc.getdoc(func))
3166
3167
# If there is no help information then print an error
0 commit comments