From 94bcafa4855308a19113a424a42a8f0537a991cf Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Wed, 30 Mar 2016 22:03:24 +0200 Subject: [PATCH] Fix command being ignored. --- cli.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli.js b/cli.js index 497fe18..f5eee32 100755 --- a/cli.js +++ b/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]); }); }