[#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 e8288eec6a
commit 3e610ec5ba
1 changed files with 1 additions and 0 deletions

View File

@ -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):