From c99736f20725c14efc3b9c3c34bd429ac431a1ff Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Wed, 12 Nov 2008 18:17:14 +0000 Subject: [PATCH] allow multiple commands for deluge -u console -a ... --- deluge/ui/console/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index 7d845914d..1867287da 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -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):