March 2003
Intermediate to advanced
656 pages
39h 30m
English
do_help
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.