diff --git a/src/Composer/Command/DumpAutoloadCommand.php b/src/Composer/Command/DumpAutoloadCommand.php
index 3e1541590..23ba53167 100644
--- a/src/Composer/Command/DumpAutoloadCommand.php
+++ b/src/Composer/Command/DumpAutoloadCommand.php
@@ -41,7 +41,11 @@ EOT
protected function execute(InputInterface $input, OutputInterface $output)
{
- $output->writeln('Generating autoload files');
+ if ($input->getOption('optimize')) {
+ $output->writeln('Generating optimized autoload files');
+ } else {
+ $output->writeln('Generating autoload files');
+ }
$composer = $this->getComposer();