Browse Source

Add shorthand '-o'-option for '--optimize-autoloaders'

Sebastian Krebs 12 years ago
parent
commit
578a216343
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Composer/Command/InstallCommand.php
  2. 1 1
      src/Composer/Command/UpdateCommand.php

+ 1 - 1
src/Composer/Command/InstallCommand.php

@@ -37,7 +37,7 @@ class InstallCommand extends Command
                 new InputOption('no-custom-installers', null, InputOption::VALUE_NONE, 'Disables all custom installers.'),
                 new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defined in composer.json file.'),
                 new InputOption('verbose', 'v', InputOption::VALUE_NONE, 'Shows more details including new commits pulled in when updating packages.'),
-                new InputOption('optimize-autoloaders', null, InputOption::VALUE_NONE, 'Optimize autoloaders during autoloader dump')
+                new InputOption('optimize-autoloaders', 'o', InputOption::VALUE_NONE, 'Optimize autoloaders during autoloader dump')
             ))
             ->setHelp(<<<EOT
 The <info>install</info> command reads the composer.lock file from

+ 1 - 1
src/Composer/Command/UpdateCommand.php

@@ -37,7 +37,7 @@ class UpdateCommand extends Command
                 new InputOption('no-custom-installers', null, InputOption::VALUE_NONE, 'Disables all custom installers.'),
                 new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defined in composer.json file.'),
                 new InputOption('verbose', 'v', InputOption::VALUE_NONE, 'Shows more details including new commits pulled in when updating packages.'),
-                new InputOption('optimize-autoloaders', null, InputOption::VALUE_NONE, 'Optimize autoloaders during autoloader dump')
+                new InputOption('optimize-autoloaders', 'o', InputOption::VALUE_NONE, 'Optimize autoloaders during autoloader dump')
             ))
             ->setHelp(<<<EOT
 The <info>update</info> command reads the composer.json file from the