exit properly..
(Ömer Fadıl Usta)
This commit is contained in:
@@ -88,6 +88,7 @@ class PisiCLI(object):
|
|||||||
if len(args)==0: # more explicit than using IndexError
|
if len(args)==0: # more explicit than using IndexError
|
||||||
if 'version' in opts:
|
if 'version' in opts:
|
||||||
self.parser.print_version()
|
self.parser.print_version()
|
||||||
|
sys.exit(0)
|
||||||
elif 'help' in opts:
|
elif 'help' in opts:
|
||||||
self.die()
|
self.die()
|
||||||
raise Error(_('No command given'))
|
raise Error(_('No command given'))
|
||||||
|
|||||||
Reference in New Issue
Block a user