diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2014-08-04 18:53:54 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2014-08-04 21:57:54 +0100 |
commit | a4fb8e769bbd4438ce722fe7c2d46eb2cf822789 (patch) | |
tree | b408b8c5cc3e5e95059a6c10a154862a3321ea96 | |
parent | 56bbc90c5b1a143a560bf5dd40687a0cc4deb1b3 (diff) | |
download | deluge-a4fb8e769bbd4438ce722fe7c2d46eb2cf822789.tar.gz deluge-a4fb8e769bbd4438ce722fe7c2d46eb2cf822789.tar.bz2 deluge-a4fb8e769bbd4438ce722fe7c2d46eb2cf822789.zip |
[#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.
-rw-r--r-- | deluge/ui/console/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index d700b832a..a00eca3d9 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -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() |