Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 3bfe826

Browse files
author
Peter Samoilov
committed
Added default value(y) for confirmation question
1 parent ec5fcb5 commit 3bfe826

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
8484
if (($currentValue !== null) && ($inputOptions[$option->getName()] !== null)) {
8585
$dialog = $this->getHelperSet()->get('question');
8686
$question = new Question(
87-
'<question>Overwrite the existing configuration for ' . $option->getName() . '?[Y/n]</question>'
87+
'<question>Overwrite the existing configuration for ' . $option->getName() . '?[Y/n]</question>',
88+
'y'
8889
);
8990
if (strtolower($dialog->ask($input, $output, $question)) !== 'y') {
9091
$inputOptions[$option->getName()] = null;

0 commit comments

Comments
 (0)