Forward --minor-only flag to show command
parent
6816acbe27
commit
5ecd9ace59
|
@ -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('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('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('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
|
->setHelp(<<<EOT
|
||||||
The outdated command is just a proxy for `composer show -l`
|
The outdated command is just a proxy for `composer show -l`
|
||||||
|
@ -70,6 +71,9 @@ EOT
|
||||||
if ($input->getOption('strict')) {
|
if ($input->getOption('strict')) {
|
||||||
$args['--strict'] = true;
|
$args['--strict'] = true;
|
||||||
}
|
}
|
||||||
|
if ($input->getOption('minor-only')) {
|
||||||
|
$args['--minor-only'] = true;
|
||||||
|
}
|
||||||
|
|
||||||
$input = new ArrayInput($args);
|
$input = new ArrayInput($args);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue