From 57b4016f8a18f5062f673b32dfbc407936741814 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 8 Sep 2020 12:01:10 +0200 Subject: [PATCH] Show default value instead of optional, refs #9181 --- src/Composer/Command/CreateProjectCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php index eac09a19f..fb1a83d3f 100644 --- a/src/Composer/Command/CreateProjectCommand.php +++ b/src/Composer/Command/CreateProjectCommand.php @@ -132,7 +132,8 @@ EOT } if ($input->isInteractive() && $input->getOption('ask')) { - $input->setArgument('directory', $io->ask('New project directory [optional]: ')); + $parts = explode("/", strtolower($input->getArgument('package')), 2); + $input->setArgument('directory', $io->ask('New project directory ['.array_pop($parts).']: ')); } $ignorePlatformReqs = $input->getOption('ignore-platform-reqs') ?: ($input->getOption('ignore-platform-req') ?: false);