[#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.
This commit is contained in:
Calum Lind 2014-08-04 18:53:54 +01:00
parent 56bbc90c5b
commit a4fb8e769b

View file

@ -64,6 +64,7 @@ class Console(_UI):
group = optparse.OptionGroup(self.parser, "Console Commands",
"\n".join(cmds.keys()))
self.parser.add_option_group(group)
self.parser.disable_interspersed_args()
def start(self):
super(Console, self).start()