Skip to content

Commit

Permalink
fix(setup): don’t rewrite no-start option when no-prompt is passed
Browse files Browse the repository at this point in the history
Now it is possible to pass both --no-prompt and --no-start options
Before this fix --no-start was ignored if --no-prompt is present
  • Loading branch information
isqua authored and acburdine committed Sep 16, 2017
1 parent 8612df2 commit bbc2270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class SetupCommand extends Command {

return this.ui.listr(tasks, {setup: true}).then(() => {
// If we are not allowed to prompt, set the default value, which should be true
if (!argv.prompt) {
if (!argv.prompt && typeof argv.start === 'undefined') {
argv.start = true;
}

Expand Down

0 comments on commit bbc2270

Please sign in to comment.