1
0
Fork 0

composer show options -t and -l do not work together, fixes #7210

pull/7402/head
mohsen shafiei 2018-06-11 01:09:52 +04:30
parent 837ad7c14e
commit 20e89a7621
1 changed files with 6 additions and 0 deletions

View File

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