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-05-19 08:30:54 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-05-19 08:30:54 +0400
commitae4d5e728c4cb555500e54be69ee1eeb75e45f99 (patch)
tree89538661f90bd65b73d7fbd665a4480212668398 /bin
parent590cbc91f94cfe0323d64789a542cc9db7934d86 (diff)
fix arg parsing bugs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 2187377..1c0ff4a 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -119,7 +119,7 @@ client.once('ready', function () {
client.server.listen(0)
})
- client.server.listen(port)
+ client.server.listen(argv.port)
})
client.server.once('listening', function () {
@@ -165,7 +165,7 @@ client.on('addTorrent', function (torrent) {
})
function ontorrent (torrent) {
- if (list) {
+ if (argv.list) {
torrent.files.forEach(function (file, i) {
clivas.line('{3+bold:'+i+'} : {magenta:'+file.name+'}')
})