exit properly..

(Ömer Fadıl Usta)
This commit is contained in:
A. Murat Eren
2005-12-26 01:25:33 +00:00
parent fcf6d5334a
commit 5c850739ab
+1
View File
@@ -88,6 +88,7 @@ class PisiCLI(object):
if len(args)==0: # more explicit than using IndexError
if 'version' in opts:
self.parser.print_version()
sys.exit(0)
elif 'help' in opts:
self.die()
raise Error(_('No command given'))