Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/cmd.rst

    r2 r391  
    1 
    21:mod:`cmd` --- Support for line-oriented command interpreters
    32=============================================================
     
    76.. sectionauthor:: Eric S. Raymond <esr@snark.thyrsus.com>
    87
     8**Source code:** :source:`Lib/cmd.py`
     9
     10--------------
    911
    1012The :class:`Cmd` class provides a simple framework for writing line-oriented
     
    1315interface.
    1416
    15 
    1617.. class:: Cmd([completekey[, stdin[, stdout]]])
    1718
     
    5354
    5455   The optional argument is a banner or intro string to be issued before the first
    55    prompt (this overrides the :attr:`intro` class member).
     56   prompt (this overrides the :attr:`intro` class attribute).
    5657
    5758   If the :mod:`readline` module is loaded, input will automatically inherit
     
    8182   provide different completion depending upon which position the argument is in.
    8283
    83    All subclasses of :class:`Cmd` inherit a predefined :meth:`do_help`. This
     84   All subclasses of :class:`Cmd` inherit a predefined :meth:`do_help`.  This
    8485   method, called with an argument ``'bar'``, invokes the corresponding method
    85    :meth:`help_bar`.  With no argument, :meth:`do_help` lists all available help
    86    topics (that is, all commands with corresponding :meth:`help_\*` methods), and
    87    also lists any undocumented commands.
     86   :meth:`help_bar`, and if that is not present, prints the docstring of
     87   :meth:`do_bar`, if available.  With no argument, :meth:`do_help` lists all
     88   available help topics (that is, all commands with corresponding
     89   :meth:`help_\*` methods or commands that have docstrings), and also lists any
     90   undocumented commands.
    8891
    8992
Note: See TracChangeset for help on using the changeset viewer.