Fix command being ignored.

This commit is contained in:
Jeroen Engels 2016-03-30 22:03:24 +02:00
parent acf2b628f4
commit 94bcafa485

3
cli.js
View file

@ -102,10 +102,11 @@ function promptForCommand(argv, cb) {
name: 'Re-generate the contributors list',
value: 'generate'
}],
when: !argv._[0],
default: 0
}];
inquirer.prompt(questions, function treatAnswers(answers) {
return cb(answers.command);
return cb(answers.command || argv._[0]);
});
}