Name
do_help
Synopsis
c.do_help(verb)
c
.onecmd calls
c
.do_help(
verb
)
when command line s starts with
'help
verb' or
'?
verb‘.
Subclasses rarely override do_help. The
Cmd.do_help method calls method
help_
verb if the
subclass supplies it, otherwise it displays the docstring of method
do_
verb if the subclass
supplies that method with a non-empty docstring. If the subclass does
not supply either source of help, Cmd.do_help
outputs a message to inform the user that no help is available on
verb.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access