From 672257462763dd54f53fe7cef966137be905f963 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 24 May 2015 16:54:17 +0200 Subject: command line: "add" is alias to "download" --- bin/cmd.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/cmd.js b/bin/cmd.js index 231dacd..44859cd 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -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] 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 Download a torrent + seed Seed a file or folder + create Create a .torrent file + info Show info for a .torrent file or magnet uri Specify torrent ids as one of the following: * magnet uri -- cgit v1.2.3