mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36:29 +00:00
Fix command being ignored.
This commit is contained in:
parent
acf2b628f4
commit
94bcafa485
1 changed files with 2 additions and 1 deletions
3
cli.js
3
cli.js
|
@ -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]);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue