mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
allow multiple commands for deluge -u console -a ...
This commit is contained in:
parent
2ed7b5b747
commit
c99736f207
1 changed files with 4 additions and 2 deletions
|
@ -98,8 +98,10 @@ class ConsoleUI(object):
|
||||||
self._commands = load_commands(os.path.join(UI_PATH, 'commands'))
|
self._commands = load_commands(os.path.join(UI_PATH, 'commands'))
|
||||||
if args:
|
if args:
|
||||||
self.precmd()
|
self.precmd()
|
||||||
self.onecmd(args)
|
#allow multiple commands split by ";"
|
||||||
self.postcmd()
|
for arg in args.split(";"):
|
||||||
|
self.onecmd(arg)
|
||||||
|
self.postcmd()
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
def completedefault(self, *ignored):
|
def completedefault(self, *ignored):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue