diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-05-24 17:54:17 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-05-24 17:54:17 +0300 |
commit | 672257462763dd54f53fe7cef966137be905f963 (patch) | |
tree | 85f25aba76c81722d13422c0e5736d9d93fb81de | |
parent | b4b3d64e99175cb5201519ffea27394d79d1c22e (diff) |
command line: "add" is alias to "download"
-rwxr-xr-x | bin/cmd.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -74,7 +74,7 @@ if (command === 'help' || argv.help) { runInfo(/* torrentId */ argv._[1]) } else if (command === 'create') { runCreate(/* input */ argv._[1]) -} else if (command === 'download') { +} else if (command === 'download' || command === 'add') { runDownload(/* torrentId */ argv._[1]) } else if (command === 'seed') { runSeed(/* input */ argv._[1]) @@ -103,13 +103,13 @@ function runHelp () { webtorrent [command] <torrent-id> <options> Example: - webtorrent download "magnet:?xt=urn:btih:..." --vlc + webtorrent download "magnet:..." --vlc Available commands: - create Create a .torrent file - download Download a torrent - info Show info for a .torrent file or magnet uri - seed Seed a file or folder + download <torrentId> Download a torrent + seed <file/folder> Seed a file or folder + create <file> Create a .torrent file + info <torrentId> Show info for a .torrent file or magnet uri Specify torrent ids as one of the following: * magnet uri |