Sfoglia il codice sorgente

Merge pull request #2283 from hkdobrev/master

Use default description and license from CLI args
Jordi Boggiano 11 anni fa
parent
commit
b0a7c7574a
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 4 2
      src/Composer/Command/InitCommand.php

+ 4 - 2
src/Composer/Command/InitCommand.php

@@ -208,7 +208,8 @@ EOT
         $description = $input->getOption('description') ?: false;
         $description = $dialog->ask(
             $output,
-            $dialog->getQuestion('Description', $description)
+            $dialog->getQuestion('Description', $description),
+            $description
         );
         $input->setOption('description', $description);
 
@@ -258,7 +259,8 @@ EOT
         $license = $input->getOption('license') ?: false;
         $license = $dialog->ask(
             $output,
-            $dialog->getQuestion('License', $license)
+            $dialog->getQuestion('License', $license),
+            $license
         );
         $input->setOption('license', $license);