1
0
Fork 0

Show default value instead of optional, refs #9181

pull/9197/head
Jordi Boggiano 2020-09-08 12:01:10 +02:00
parent 5555b04cea
commit 57b4016f8a
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ EOT
} }
if ($input->isInteractive() && $input->getOption('ask')) { if ($input->isInteractive() && $input->getOption('ask')) {
$input->setArgument('directory', $io->ask('New project directory <comment>[optional]</comment>: ')); $parts = explode("/", strtolower($input->getArgument('package')), 2);
$input->setArgument('directory', $io->ask('New project directory [<comment>'.array_pop($parts).'</comment>]: '));
} }
$ignorePlatformReqs = $input->getOption('ignore-platform-reqs') ?: ($input->getOption('ignore-platform-req') ?: false); $ignorePlatformReqs = $input->getOption('ignore-platform-reqs') ?: ($input->getOption('ignore-platform-req') ?: false);