1
0
Fork 0

Forward --minor-only flag to show command

pull/6008/head
Jordi Boggiano 2016-12-28 18:44:32 +01:00
parent 6816acbe27
commit 5ecd9ace59
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class OutdatedCommand extends ShowCommand
new InputOption('all', 'a', InputOption::VALUE_NONE, 'Show all installed packages with their latest versions'),
new InputOption('direct', 'D', InputOption::VALUE_NONE, 'Shows only packages that are directly required by the root package'),
new InputOption('strict', null, InputOption::VALUE_NONE, 'Return a non-zero exit code when there are outdated packages'),
new InputOption('minor-only', 'm', InputOption::VALUE_NONE, 'Show only packages that have minor SemVer-compatible updates. Use with the --outdated option.'),
))
->setHelp(<<<EOT
The outdated command is just a proxy for `composer show -l`
@ -70,6 +71,9 @@ EOT
if ($input->getOption('strict')) {
$args['--strict'] = true;
}
if ($input->getOption('minor-only')) {
$args['--minor-only'] = true;
}
$input = new ArrayInput($args);