diff options
author | Guido van Rossum <guido@python.org> | 1998-08-27 19:02:51 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-27 19:02:51 +0000 |
commit | b9f48608f6c0338a85c7162ec07fbad5f95d1f8a (patch) | |
tree | de35731da9cf7f9ed5ebbedc299fd932c0b3db7b /Python | |
parent | de57030a1caedda84ba53921f6fa85fdaa625027 (diff) | |
download | cpython-git-b9f48608f6c0338a85c7162ec07fbad5f95d1f8a.tar.gz |
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.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions