[#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:
parent
e8288eec6a
commit
3e610ec5ba
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue