From fd2ee9fe356e1f8b3f8a69579a2154b1af0dd81a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 22 Oct 2012 15:04:49 +0200 Subject: exit values are used if help is automatically printed --- ponysay.py | 3 +++ 1 file changed, 3 insertions(+) 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 ############################################## -- cgit