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
diff options
context:
space:
mode:
-rwxr-xr-xbin/cmd.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index f427567..660a994 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -133,7 +133,9 @@ playerName = argv.airplay ? 'Airplay'
var command = argv._[0]
-if (command === 'help' || argv.help) {
+if (['info', 'create', 'download', 'add', 'seed'].indexOf(command) !== -1 && argv._.length !== 2) {
+ runHelp()
+} else if (command === 'help' || argv.help) {
runHelp()
} else if (command === 'version' || argv.version) {
runVersion()