From 3e610ec5ba32da2b83fc3de56c6d9f3535ea59e4 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 4 Aug 2014 18:53:54 +0100 Subject: [PATCH] [#2470] [Console] Fix console parsing args This negates the need for quoting a single command with an arg e.g. deluge-console del --remove_data torrrent_file Multiple commands separated by semi-colon still require quoting. --- deluge/ui/console/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index bde3836e6..2134c354c 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -71,6 +71,7 @@ class Console(_UI): group.add_option("-u", "--username", dest="daemon_user") group.add_option("-P", "--password", dest="daemon_pass") self.parser.add_option_group(group) + self.parser.disable_interspersed_args() self.console_cmds = load_commands(os.path.join(UI_PATH, 'commands')) class CommandOptionGroup(optparse.OptionGroup):