diff options
| author | Raymond Hettinger <python@rcn.com> | 2012-07-16 07:11:05 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2012-07-16 07:11:05 (GMT) |
| commit | 66dd94199c00bc059fc70bb246db01b60f5a650a (patch) | |
| tree | dbee94787cadba4d1750cd222e528bb0671a5ea4 /Lib | |
| parent | e0c22206e421c93d43c4a0c01049478ef0c0496b (diff) | |
| download | cpython-66dd94199c00bc059fc70bb246db01b60f5a650a.zip cpython-66dd94199c00bc059fc70bb246db01b60f5a650a.tar.gz cpython-66dd94199c00bc059fc70bb246db01b60f5a650a.tar.bz2 | |
Issue 15337: help() shown as undocumented
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/cmd.py | 1 | ||||
| -rw-r--r-- | Lib/test/test_cmd.py | 8 |
2 files changed, 5 insertions, 4 deletions
@@ -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: diff --git a/Lib/test/test_cmd.py b/Lib/test/test_cmd.py index 8bb4e63..ed9258b 100644 --- a/Lib/test/test_cmd.py +++ b/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 |
