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.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.