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>2014-09-13 21:01:54 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-09-13 21:01:54 +0400
commitc24aab11fd46388a789cf1263832fe57836959a5 (patch)
tree104135fd53afcd323822ac7a17ef48d4e1232d06 /bin
parent6430f6e77cfc583beb3568346913e2db9ccdd00e (diff)
help message formatting
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js21
1 files changed, 10 insertions, 11 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index f8ab428..fd22829 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -2,7 +2,6 @@
var airplay = require('airplay-js')
var chromecast = require('chromecast-js')
-var xbmc = require('nodebmc')
var clivas = require('clivas')
var cp = require('child_process')
var fs = require('fs')
@@ -12,6 +11,7 @@ var networkAddress = require('network-address')
var numeral = require('numeral')
var path = require('path')
var WebTorrent = require('../')
+var xbmc = require('nodebmc')
process.on('exit', function (code) {
if (code !== 0) {
@@ -63,27 +63,26 @@ if (argv.help || !torrentId) {
})
console.log(function () {/*
-
Usage:
webtorrent <options> <torrent>
Download the torrent, given as:
-
* magnet uri
- * http/https url to .torrent file
+ * http url to .torrent file
* filesystem path to .torrent file
- * info hash (as hex string)
-
- Options:
+ * info hash (hex string)
+ Download options:
--airplay stream to Apple TV (AirPlay)
--chromecast stream to Chromecast
--xbmc stream to XBMC
- --vlc stream in VLC
- --mplayer stream in MPlayer
- --mpv stream in MPV
- --omx [jack] stream in omx (jack=local|hdmi)
+ --vlc stream to VLC
+ --mplayer stream to MPlayer
+ --mpv stream to MPV
+ --omx [jack] stream to omx (jack=local|hdmi)
+
+ Options:
-p, --port [number] change the http port [default: 9000]
-b, --blocklist [path] use the specified blocklist
-t, --subtitles [file] load subtitles file