diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-03-23 11:51:24 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-03-23 11:51:24 -0400 |
commit | 3126eb792816e09ce56f24262447077df1bdc0c3 (patch) | |
tree | 3a80de210c8fc8fe49a0597e7b45bd638699a231 /examples | |
parent | 3a4893ec32c6d38cad344667fead93e2eed8dc88 (diff) | |
download | cmd2-git-exit_code.tar.gz |
No longer using -1 as an exit codeexit_code
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/exit_code.py | 2 | ||||
-rwxr-xr-x | examples/pirate.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/exit_code.py b/examples/exit_code.py index 80cef62f..440fc595 100755 --- a/examples/exit_code.py +++ b/examples/exit_code.py @@ -28,7 +28,7 @@ class ReplWithExitCode(cmd2.Cmd): self.exit_code = int(arg_list[0]) except ValueError: self.perror("{} isn't a valid integer exit code".format(arg_list[0])) - self.exit_code = -1 + self.exit_code = 1 return True 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 |