diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-16 21:16:19 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-16 21:16:19 -0400 |
commit | add272fb1d446034ed3bb1001939baa3e8cd2bfb (patch) | |
tree | 74da1b0c45d23b6c04a53cd4c4989c39f14865c5 /examples/pirate.py | |
parent | bee1fe5e06aa07a2976858d25466ba714c9d9a38 (diff) | |
download | cmd2-git-add272fb1d446034ed3bb1001939baa3e8cd2bfb.tar.gz |
Updated one example so it can be used properly with default_to_shell
Diffstat (limited to 'examples/pirate.py')
-rwxr-xr-x | examples/pirate.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/pirate.py b/examples/pirate.py index cfe545d6..f3a8fc7a 100755 --- a/examples/pirate.py +++ b/examples/pirate.py @@ -29,10 +29,6 @@ class Pirate(Cmd): self.initial_gold = self.gold self.prompt = 'arrr> ' - def default(self, line): - """This handles unknown commands.""" - self.poutput('What mean ye by "{0}"?'.format(line)) - def precmd(self, line): """Runs just before a command line is parsed, but after the prompt is presented.""" self.initial_gold = self.gold |