summaryrefslogtreecommitdiff
path: root/examples/pirate.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pirate.py')
-rwxr-xr-xexamples/pirate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pirate.py b/examples/pirate.py
index f91b99d7..3a9b7b36 100755
--- a/examples/pirate.py
+++ b/examples/pirate.py
@@ -46,7 +46,7 @@ class Pirate(cmd2.Cmd):
self.poutput('Now we gots {0} doubloons'.format(self.gold))
if self.gold < 0:
self.poutput("Off to debtorrr's prison.")
- self.exit_code = -1
+ self.exit_code = 1
stop = True
return stop