Kaydet (Commit) 9c946358 authored tarafından Eray Özkural's avatar Eray Özkural

* fix: pass arguments correctly in pisicli

* fix (attempt): try to finalize api in case of error
üst b9848663
......@@ -100,7 +100,7 @@ class PisiCLI(object):
except ParserError:
raise Error(_('Command line parsing error'))
self.command = Command.get_command(cmd_name, args)
self.command = Command.get_command(cmd_name, args=args)
if not self.command:
raise Error(_("Unrecognized command: %s") % cmd_name)
......@@ -58,9 +58,9 @@ Copyright 2006 (c) Pardus
signal.signal(signal.SIGINT, signal.SIG_IGN) # disable further interrupts
ui = pisi.cli.CLI() # make a temporary UI
show_traceback = False
if isinstance(value, exceptions.KeyboardInterrupt):
ui.error(_("Keyboard Interrupt: Exiting..."))
elif isinstance(value, pisi.Error):
ui.error(_("Program Terminated."))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment