allow multiple commands for deluge -u console -a ...

This commit is contained in:
Martijn Voncken 2008-11-12 18:17:14 +00:00
parent 2ed7b5b747
commit c99736f207

View file

@ -98,8 +98,10 @@ class ConsoleUI(object):
self._commands = load_commands(os.path.join(UI_PATH, 'commands'))
if args:
self.precmd()
self.onecmd(args)
self.postcmd()
#allow multiple commands split by ";"
for arg in args.split(";"):
self.onecmd(arg)
self.postcmd()
sys.exit(0)
def completedefault(self, *ignored):