mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue