Mercurial > python-cmd2
diff docs/pycon2010/pycon2010.rst @ 356:d275d3beceff
fix usage help name-stripping bug
author | catherine@dellzilla |
---|---|
date | Wed, 17 Feb 2010 14:32:04 -0500 |
parents | 5e3f918c41d8 |
children | ce4448ca4088 |
line wrap: on
line diff
--- a/docs/pycon2010/pycon2010.rst Wed Feb 17 12:32:49 2010 -0500 +++ b/docs/pycon2010/pycon2010.rst Wed Feb 17 14:32:04 2010 -0500 @@ -242,14 +242,6 @@ * Shortcuts * Multiline commands * Environment variables - -Now how much would you pay? -=========================== - - * options / flags - * Quiet (suppress feedback) - * BASH-style ``select`` - * Parsing: terminators, suffixes Minor changes: pirate7.py ========================= @@ -259,8 +251,19 @@ default_to_shell = True multilineCommands = ['sing'] terminators = Cmd.terminators + ['...'] + songcolor = 'blue' + settable = Cmd.settable + 'songcolor Color to ``sing`` in (red/blue/green/cyan/magenta, bold, underline)' + Cmd.shortcuts.update({'~': 'sing'}) def do_sing(self, arg): - print(self.colorize(arg, 'blue')) + print(self.colorize(arg, self.songcolor)) + +Now how much would you pay? +=========================== + + * options / flags + * Quiet (suppress feedback) + * BASH-style ``select`` + * Parsing: terminators, suffixes Options: pirate8.py ===================