Skip to content

Commit

Permalink
fix(yargs-interactive): fix interactive mode execution
Browse files Browse the repository at this point in the history
Fixes #41
  • Loading branch information
nanovazquez committed Feb 14, 2022
1 parent 42d610e commit bdef91b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**
3 changes: 2 additions & 1 deletion src/yargs-interactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const yargsInteractive = (processArgs = process.argv.slice(2), cwd) => {
// Merge options sent by parameters with interactive option
const mergedOptions = Object.assign({}, options, {
interactive: {
default: !!(options.interactive && options.interactive.default),
type: 'confirm',
default: !!(options.interactive && options.interactive.default) || !!yargs.argv.interactive,
prompt: 'never'
}
});
Expand Down

0 comments on commit bdef91b

Please sign in to comment.