Update help for 'info'

This commit updates help information when you run `help info`. We inform user of Tab Completion, and of `info *`.
There is also some removal of duplicate information(no need for line about `info -s <state>` since we tell the user that when they read the option about '-s')
This commit is contained in:
Nogare 2012-03-14 15:34:18 -04:00 committed by Asmageddon
parent b8f2a1da1a
commit e85be7cccb
1 changed files with 8 additions and 5 deletions

View File

@ -111,11 +111,14 @@ class Command(BaseCommand):
) )
usage = "Usage: info [-v | -d | -s <state>] [<torrent-id> [<torrent-id> ...]]\n"\ usage = "Usage: info [-v | -d | -s <state>] [<torrent-id> [<torrent-id> ...]]\n"\
" use -v to view more info and -d to view detailed information"\ " You can give the first few characters of a torrent-id to identify the torrent.\n"\
" about files and peers."\ " info * will list all torrents.\n\n"\
" info -s <state> will show only torrents in state <state>\n"\ " Tab Completion (info *pattern*<tab>):\n"\
" You can give the first few characters of a torrent-id to identify the torrent." " | First press of <tab> will output up to 15 matches;\n"\
" | hitting <tab> a second time, will print 15 more matches; \n"\
" | and a third press will print all remaining matches.\n"\
" | (To modify behaviour of third <tab>, set `third_tab_lists_all` to False)"
def handle(self, *args, **options): def handle(self, *args, **options):
self.console = component.get("ConsoleUI") self.console = component.get("ConsoleUI")
# Compile a list of torrent_ids to request the status of # Compile a list of torrent_ids to request the status of