From b8c084e82c7bae771c0197b177f5c32c7e513c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 14 Jun 2003 09:03:46 +0000 Subject: Support keyword and topics help in cli(). Fixes #715782. --- Lib/pydoc.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Lib/pydoc.py') diff --git a/Lib/pydoc.py b/Lib/pydoc.py index fe114fd782..abafc0e6b4 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -2116,7 +2116,7 @@ def cli(): else: writedoc(arg) else: - doc(arg) + help.help(arg) except ErrorDuringImport, value: print value @@ -2126,9 +2126,11 @@ def cli(): %s ... Show text documentation on something. may be the name of a - function, module, or package, or a dotted reference to a class or - function within a module or module in a package. If contains - a '%s', it is used as the path to a Python source file to document. + Python keyword, topic, function, module, or package, or a dotted + reference to a class or function within a module or module in a + package. If contains a '%s', it is used as the path to a + Python source file to document. If name is 'keywords', 'topics', + or 'modules', a listing of these things is displayed. %s -k Search for a keyword in the synopsis lines of all available modules. -- cgit v1.2.1