Mercurial > python-cmd2
comparison 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 |
comparison
equal
deleted
inserted
replaced
355:5972ae04515e | 356:d275d3beceff |
---|---|
240 * Default to shell | 240 * Default to shell |
241 * Color output | 241 * Color output |
242 * Shortcuts | 242 * Shortcuts |
243 * Multiline commands | 243 * Multiline commands |
244 * Environment variables | 244 * Environment variables |
245 | |
246 Minor changes: pirate7.py | |
247 ========================= | |
248 | |
249 :: | |
250 | |
251 default_to_shell = True | |
252 multilineCommands = ['sing'] | |
253 terminators = Cmd.terminators + ['...'] | |
254 songcolor = 'blue' | |
255 settable = Cmd.settable + 'songcolor Color to ``sing`` in (red/blue/green/cyan/magenta, bold, underline)' | |
256 Cmd.shortcuts.update({'~': 'sing'}) | |
257 def do_sing(self, arg): | |
258 print(self.colorize(arg, self.songcolor)) | |
245 | 259 |
246 Now how much would you pay? | 260 Now how much would you pay? |
247 =========================== | 261 =========================== |
248 | 262 |
249 * options / flags | 263 * options / flags |
250 * Quiet (suppress feedback) | 264 * Quiet (suppress feedback) |
251 * BASH-style ``select`` | 265 * BASH-style ``select`` |
252 * Parsing: terminators, suffixes | 266 * Parsing: terminators, suffixes |
253 | |
254 Minor changes: pirate7.py | |
255 ========================= | |
256 | |
257 :: | |
258 | |
259 default_to_shell = True | |
260 multilineCommands = ['sing'] | |
261 terminators = Cmd.terminators + ['...'] | |
262 def do_sing(self, arg): | |
263 print(self.colorize(arg, 'blue')) | |
264 | 267 |
265 Options: pirate8.py | 268 Options: pirate8.py |
266 =================== | 269 =================== |
267 | 270 |
268 :: | 271 :: |