diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2014-05-19 08:30:54 +0400 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2014-05-19 08:30:54 +0400 |
commit | ae4d5e728c4cb555500e54be69ee1eeb75e45f99 (patch) | |
tree | 89538661f90bd65b73d7fbd665a4480212668398 /bin | |
parent | 590cbc91f94cfe0323d64789a542cc9db7934d86 (diff) |
fix arg parsing bugs
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmd.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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+'}') }) |