diff --git a/doc/03-cli.md b/doc/03-cli.md index 57685296c..3703adde6 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -109,7 +109,7 @@ resolution. * **--no-autoloader:** Skips autoloader generation. * **--no-progress:** Removes the progress display that can mess with some terminals or scripts which don't handle backspace characters. -* **--no-audit:** Does not run the audit step after installation is complete. +* **--audit:** Run an audit after installation is complete. * **--audit-format:** Audit output format. Must be "table", "plain", or "summary" (default). * **--optimize-autoloader (-o):** Convert PSR-0/4 autoloading to classmap to get a faster autoloader. This is recommended especially for production, but can take diff --git a/src/Composer/Command/InstallCommand.php b/src/Composer/Command/InstallCommand.php index 29b2d02f3..7ad0acf79 100644 --- a/src/Composer/Command/InstallCommand.php +++ b/src/Composer/Command/InstallCommand.php @@ -52,7 +52,7 @@ class InstallCommand extends BaseCommand new InputOption('no-autoloader', null, InputOption::VALUE_NONE, 'Skips autoloader generation'), new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'), new InputOption('no-install', null, InputOption::VALUE_NONE, 'Do not use, only defined here to catch misuse of the install command.'), - new InputOption('no-audit', null, InputOption::VALUE_NONE, 'Skip the audit step after installation is complete.'), + new InputOption('audit', null, InputOption::VALUE_NONE, 'Run an audit after installation is complete.'), new InputOption('audit-format', null, InputOption::VALUE_REQUIRED, 'Audit output format. Must be "table", "plain", or "summary".', Auditor::FORMAT_SUMMARY, Auditor::FORMATS), new InputOption('verbose', 'v|vv|vvv', InputOption::VALUE_NONE, 'Shows more details including new commits pulled in when updating packages.'), new InputOption('optimize-autoloader', 'o', InputOption::VALUE_NONE, 'Optimize autoloader during autoloader dump'), @@ -133,7 +133,7 @@ EOT ->setClassMapAuthoritative($authoritative) ->setApcuAutoloader($apcu, $apcuPrefix) ->setPlatformRequirementFilter($this->getPlatformRequirementFilter($input)) - ->setAudit(!$input->getOption('no-audit')) + ->setAudit($input->getOption('audit')) ->setAuditFormat($this->getAuditFormat($input)) ;