Skip to content

Commit

Permalink
fix(cli-options): skip boolean questions when using --noDefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
sharvit committed Aug 2, 2019
1 parent 8ce294c commit 848f4ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/prompter.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export default class Prompter {

result.when = () => {
if (this.props[name] !== undefined) return false;
if (this.props.noDefaults && prompt.type === Boolean) return false;

if (prompts[name].dependOn) {
for (const dependOn of prompts[name].dependOn) {
Expand Down

0 comments on commit 848f4ca

Please sign in to comment.