diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-10-22 15:04:49 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-10-22 15:04:49 +0200 |
commit | fd2ee9fe356e1f8b3f8a69579a2154b1af0dd81a (patch) | |
tree | 723219ec3f6aabf1d5b74a55a16299d217024940 | |
parent | b160350c0dafd822481a2ae1e77f056b11036f03 (diff) | |
download | ponysay-fd2ee9fe356e1f8b3f8a69579a2154b1af0dd81a.tar.gz ponysay-fd2ee9fe356e1f8b3f8a69579a2154b1af0dd81a.tar.bz2 ponysay-fd2ee9fe356e1f8b3f8a69579a2154b1af0dd81a.zip |
exit values are used if help is automatically printed
-rwxr-xr-x | ponysay.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 ############################################## |