mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-26 14:18:00 +01:00
exit values are used if help is automatically printed
This commit is contained in:
parent
b160350c0d
commit
fd2ee9fe35
1 changed files with 3 additions and 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
|
||||
|
||||
|
||||
##############################################
|
||||
|
|
Loading…
Reference in a new issue