Browse Source

Forward --minor-only flag to show command

Jordi Boggiano 8 years ago
parent
commit
5ecd9ace59
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/Composer/Command/OutdatedCommand.php

+ 4 - 0
src/Composer/Command/OutdatedCommand.php

@@ -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);