Rename torrent_options to manage.
This commit is contained in:
parent
117d29ae72
commit
163870afd9
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# config.py
|
# manage.py
|
||||||
#
|
#
|
||||||
# Copyright (C) 2008-2009 Ido Abramovich <ido.deluge@gmail.com>
|
# Copyright (C) 2008-2009 Ido Abramovich <ido.deluge@gmail.com>
|
||||||
# Copyright (C) 2009 Andrew Resch <andrewresch@gmail.com>
|
# Copyright (C) 2009 Andrew Resch <andrewresch@gmail.com>
|
||||||
|
@ -61,14 +61,14 @@ torrent_options = {
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
"""Show and set per-torrent options"""
|
"""Show and manage per-torrent options"""
|
||||||
|
|
||||||
option_list = BaseCommand.option_list + (
|
option_list = BaseCommand.option_list + (
|
||||||
make_option('-s', '--set', action='store', nargs=2, dest='set',
|
make_option('-s', '--set', action='store', nargs=2, dest='set',
|
||||||
help='set value for key'),
|
help='set value for key'),
|
||||||
)
|
)
|
||||||
usage = "Usage: torrent_option <torrent-id> [<key1> [<key2> ...]]\n"\
|
usage = "Usage: manage <torrent-id> [<key1> [<key2> ...]]\n"\
|
||||||
" torrent_option <torrent-id> --set <key> <value>"
|
" manage <torrent-id> --set <key> <value>"
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
self.console = component.get("ConsoleUI")
|
self.console = component.get("ConsoleUI")
|
Loading…
Reference in New Issue