mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Issue 15337: help() shown as undocumented
This commit is contained in:
@@ -294,6 +294,7 @@ class Cmd:
|
||||
return list(commands | topics)
|
||||
|
||||
def do_help(self, arg):
|
||||
'List available commands with "help" or detailed help with "help cmd".'
|
||||
if arg:
|
||||
# XXX check arg syntax
|
||||
try:
|
||||
|
||||
@@ -84,11 +84,11 @@ class samplecmdclass(cmd.Cmd):
|
||||
<BLANKLINE>
|
||||
Documented commands (type help <topic>):
|
||||
========================================
|
||||
add
|
||||
add help
|
||||
<BLANKLINE>
|
||||
Undocumented commands:
|
||||
======================
|
||||
exit help shell
|
||||
exit shell
|
||||
<BLANKLINE>
|
||||
|
||||
Test for the function print_topics():
|
||||
@@ -125,11 +125,11 @@ class samplecmdclass(cmd.Cmd):
|
||||
<BLANKLINE>
|
||||
Documented commands (type help <topic>):
|
||||
========================================
|
||||
add
|
||||
add help
|
||||
<BLANKLINE>
|
||||
Undocumented commands:
|
||||
======================
|
||||
exit help shell
|
||||
exit shell
|
||||
<BLANKLINE>
|
||||
help text for add
|
||||
Hello from postloop
|
||||
|
||||
Reference in New Issue
Block a user