Browse Source

Issue 15337: help() shown as undocumented

pull/2332/head
Raymond Hettinger 14 years ago
parent
commit
66dd94199c
  1. 1
      Lib/cmd.py
  2. 8
      Lib/test/test_cmd.py

1
Lib/cmd.py

@ -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:

8
Lib/test/test_cmd.py

@ -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

Loading…
Cancel
Save