]> granicus.if.org Git - python/commit
Changes by Richard Wolff:
authorGuido van Rossum <guido@python.org>
Thu, 27 Aug 1998 19:02:51 +0000 (19:02 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 27 Aug 1998 19:02:51 +0000 (19:02 +0000)
commitb9f48608f6c0338a85c7162ec07fbad5f95d1f8a
treede35731da9cf7f9ed5ebbedc299fd932c0b3db7b
parentde57030a1caedda84ba53921f6fa85fdaa625027
Changes by Richard Wolff:

1) I added a command queue which is helpful to me (at least so far) and
   would also allow syntax like 's;s' (step; step) in conjunction with precmd
2) doc_leader allows the derived class to print a message before the help
   output.  Defaults to current practise of a blank line
3) nohelp allows one to override the 'No help on' message.  I need
    'Undefined command: "%s".  Try "help".'
4) Pass line to self.precmd to allow one to do some parsing: change first
   word to lower case, strip out a leading number, whatever.
5) Pass the result of onecmd and the input line to postcmd.  This allows
   one to ponder the stop result before it is effective.
6) emptyline() requires a   if self.lastcmd:  conditional because if the
   first command is null (<cr>), you get an infinite recursion with the
   code as it stands.
Lib/cmd.py