diff options
author | Romain Beaumont <romain.rom1@gmail.com> | 2016-01-10 21:58:22 +0300 |
---|---|---|
committer | Romain Beaumont <romain.rom1@gmail.com> | 2016-01-10 22:19:31 +0300 |
commit | f2b5eb853273e032393a858ea2b15a090aad07ab (patch) | |
tree | 4a900e292b0df427547e9b674b1a42f20232f5db /bin | |
parent | 8861568fce3cb59d0c66dfe4ccea0ee2297948c3 (diff) |
show help if there is not exactly one argument for info, create, download, add and seed, fix #567
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmd.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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() |