Skip to content

Commit

Permalink
Merge pull request #32 from jordonbiondo/bug/help
Browse files Browse the repository at this point in the history
fix --help check
  • Loading branch information
vkarpov15 committed Jun 19, 2019
2 parents b0a5c29 + a8bd8c7 commit c1a17e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c1a17e7

Please sign in to comment.