Add cli_exit event

This commit is contained in:
Dang Mai 2013-01-29 20:50:28 -05:00
parent afae030477
commit 03c311696f

View file

@ -723,6 +723,7 @@ def main(args=None):
"""
try:
_raw_main(args)
plugins.send('cli_exit')
except UserError as exc:
message = exc.args[0] if exc.args else None
log.error(u'error: {0}'.format(message))