Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-05-24 17:54:17 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-05-24 17:54:17 +0300
commit672257462763dd54f53fe7cef966137be905f963 (patch)
tree85f25aba76c81722d13422c0e5736d9d93fb81de /bin
parentb4b3d64e99175cb5201519ffea27394d79d1c22e (diff)
command line: "add" is alias to "download"
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js12
1 files changed, 6 insertions, 6 deletions
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] <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