Skip to content

Commit

Permalink
Added default value(y) for confirmation question
Browse files Browse the repository at this point in the history
  • Loading branch information
aheadWorks committed Oct 31, 2018
1 parent ec5fcb5 commit 3bfe826
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (($currentValue !== null) && ($inputOptions[$option->getName()] !== null)) {
$dialog = $this->getHelperSet()->get('question');
$question = new Question(
'<question>Overwrite the existing configuration for ' . $option->getName() . '?[Y/n]</question>'
'<question>Overwrite the existing configuration for ' . $option->getName() . '?[Y/n]</question>',
'y'
);
if (strtolower($dialog->ask($input, $output, $question)) !== 'y') {
$inputOptions[$option->getName()] = null;
Expand Down

0 comments on commit 3bfe826

Please sign in to comment.