mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
[#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("-u", "--username", dest="daemon_user")
|
||||||
group.add_option("-P", "--password", dest="daemon_pass")
|
group.add_option("-P", "--password", dest="daemon_pass")
|
||||||
self.parser.add_option_group(group)
|
self.parser.add_option_group(group)
|
||||||
|
self.parser.disable_interspersed_args()
|
||||||
|
|
||||||
self.console_cmds = load_commands(os.path.join(UI_PATH, 'commands'))
|
self.console_cmds = load_commands(os.path.join(UI_PATH, 'commands'))
|
||||||
class CommandOptionGroup(optparse.OptionGroup):
|
class CommandOptionGroup(optparse.OptionGroup):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user