Merge pull request #7402 from m-jch/master

composer show options -t and -l do not work together, fixes #7210
main
Jordi Boggiano 6 years ago committed by GitHub
commit 3d2b0deb6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -118,6 +118,12 @@ EOT
return 1;
}
if ($input->getOption('tree') && $input->getOption('latest')) {
$io->writeError('The --tree (-t) option is not usable in combination with --latest (-l)');
return 1;
}
$format = $input->getOption('format');
if (!in_array($format, array('text', 'json'))) {
$io->writeError(sprintf('Unsupported format "%s". See help for supported formats.', $format));

Loading…
Cancel
Save