浏览代码

Merge pull request #7402 from m-jch/master

composer show options -t and -l do not work together, fixes #7210
Jordi Boggiano 6 年之前
父节点
当前提交
3d2b0deb6a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/Composer/Command/ShowCommand.php

+ 6 - 0
src/Composer/Command/ShowCommand.php

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