summaryrefslogtreecommitdiff
path: root/example/example.py
diff options
context:
space:
mode:
authorCatherine Devlin <catherine.devlin@gmail.com>2010-01-29 11:26:23 -0500
committerCatherine Devlin <catherine.devlin@gmail.com>2010-01-29 11:26:23 -0500
commit4fc647dfa9017d65f682b28468ae3f323b24efe6 (patch)
tree64d1200c673f7c69100566a6b44c761b49b5de1f /example/example.py
parent4bbc04888d3e2fdb927fe683fcee8352877e6229 (diff)
downloadcmd2-git-4fc647dfa9017d65f682b28468ae3f323b24efe6.tar.gz
select polished
Diffstat (limited to 'example/example.py')
-rwxr-xr-xexample/example.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/example/example.py b/example/example.py
index d1d66502..0c99580b 100755
--- a/example/example.py
+++ b/example/example.py
@@ -25,11 +25,7 @@ class CmdLineApp(Cmd):
self.stdout.write(arg)
self.stdout.write('\n')
# self.stdout.write is better than "print", because Cmd can be
- # initialized with a non-standard output destination
- def do_sel(self, arg):
- opts = arg.split()
- result = self.select(opts)
- self.poutput('yay for %s' % result)
+ # initialized with a non-standard output destination
do_say = do_speak # now "say" is a synonym for "speak"
do_orate = do_speak # another synonym, but this one takes multi-line input