aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-10-22 15:04:49 +0200
committerMattias Andrée <maandree@operamail.com>2012-10-22 15:04:49 +0200
commitfd2ee9fe356e1f8b3f8a69579a2154b1af0dd81a (patch)
tree723219ec3f6aabf1d5b74a55a16299d217024940
parentb160350c0dafd822481a2ae1e77f056b11036f03 (diff)
downloadponysay-fd2ee9fe356e1f8b3f8a69579a2154b1af0dd81a.tar.gz
ponysay-fd2ee9fe356e1f8b3f8a69579a2154b1af0dd81a.tar.bz2
ponysay-fd2ee9fe356e1f8b3f8a69579a2154b1af0dd81a.zip
exit values are used if help is automatically printed
-rwxr-xr-xponysay.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ponysay.py b/ponysay.py
index 63dcac3..19617f1 100755
--- a/ponysay.py
+++ b/ponysay.py
@@ -80,6 +80,7 @@ class Ponysay():
def __init__(self, args):
if (args.argcount == 0) and not pipelinein:
args.help()
+ exit(254)
return
## Modifyable global variables
@@ -154,6 +155,8 @@ class Ponysay():
self.print_pony(args)
else:
args.help()
+ exit(255)
+ return
##############################################