mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
Issue 15337: help() shown as undocumented
This commit is contained in:
parent
e0c22206e4
commit
66dd94199c
2 changed files with 5 additions and 4 deletions
|
@ -294,6 +294,7 @@ class Cmd:
|
||||||
return list(commands | topics)
|
return list(commands | topics)
|
||||||
|
|
||||||
def do_help(self, arg):
|
def do_help(self, arg):
|
||||||
|
'List available commands with "help" or detailed help with "help cmd".'
|
||||||
if arg:
|
if arg:
|
||||||
# XXX check arg syntax
|
# XXX check arg syntax
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -84,11 +84,11 @@ class samplecmdclass(cmd.Cmd):
|
||||||
<BLANKLINE>
|
<BLANKLINE>
|
||||||
Documented commands (type help <topic>):
|
Documented commands (type help <topic>):
|
||||||
========================================
|
========================================
|
||||||
add
|
add help
|
||||||
<BLANKLINE>
|
<BLANKLINE>
|
||||||
Undocumented commands:
|
Undocumented commands:
|
||||||
======================
|
======================
|
||||||
exit help shell
|
exit shell
|
||||||
<BLANKLINE>
|
<BLANKLINE>
|
||||||
|
|
||||||
Test for the function print_topics():
|
Test for the function print_topics():
|
||||||
|
@ -125,11 +125,11 @@ class samplecmdclass(cmd.Cmd):
|
||||||
<BLANKLINE>
|
<BLANKLINE>
|
||||||
Documented commands (type help <topic>):
|
Documented commands (type help <topic>):
|
||||||
========================================
|
========================================
|
||||||
add
|
add help
|
||||||
<BLANKLINE>
|
<BLANKLINE>
|
||||||
Undocumented commands:
|
Undocumented commands:
|
||||||
======================
|
======================
|
||||||
exit help shell
|
exit shell
|
||||||
<BLANKLINE>
|
<BLANKLINE>
|
||||||
help text for add
|
help text for add
|
||||||
Hello from postloop
|
Hello from postloop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue