diff options
Diffstat (limited to 'example/example.py')
-rwxr-xr-x | example/example.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/example/example.py b/example/example.py index d1d6650..0c99580 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 |