diff --git a/index.js b/index.js index 12536a6..3396dce 100755 --- a/index.js +++ b/index.js @@ -30,7 +30,7 @@ commander.parse(process.argv); co(run).catch(error => console.error(chalk.red(error.stack))); function* run() { - if ('--help' in commander.rawArgs) { + if (commander.rawArgs.indexOf('--help') > 0) { printHelp(); return; }