1
0
Fork 0

Tweaks and add new args to docs, refs #4663

pull/4525/merge
Jordi Boggiano 2016-01-09 18:16:50 +00:00
parent 9e42eedf1f
commit 4fbf15e6d6
2 changed files with 6 additions and 3 deletions

View File

@ -342,6 +342,9 @@ symfony/symfony requires monolog/monolog (~1)
* **--link-type:** The link types to match on, can be specified multiple
times.
* **--match-constraint (-m):** Filters the dependencies shown using this constraint.
* **--invert-match-constraint (-i):** Turns --match-constraint around into a blacklist
insteead of a whitelist.
## validate

View File

@ -45,8 +45,8 @@ class DependsCommand extends Command
->setDefinition(array(
new InputArgument('package', InputArgument::REQUIRED, 'Package to inspect'),
new InputOption('link-type', '', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Link types to show (require, require-dev)', array_keys($this->linkTypes)),
new InputOption('match-constraint', '', InputOption::VALUE_REQUIRED, 'Constraint to match', '*'),
new InputOption('match-constraint-invert', '', InputOption::VALUE_NONE, 'If constraint match should be inverted'),
new InputOption('match-constraint', 'm', InputOption::VALUE_REQUIRED, 'Filters the dependencies shown using this constraint', '*'),
new InputOption('invert-match-constraint', 'i', InputOption::VALUE_NONE, 'Turns --match-constraint around into a blacklist insteead of whitelist'),
))
->setHelp(<<<EOT
Displays detailed information about where a package is referenced.
@ -94,7 +94,7 @@ EOT
$versionParser = new VersionParser();
$constraint = $versionParser->parseConstraints($input->getOption('match-constraint'));
$matchInvert = $input->getOption('match-constraint-invert');
$matchInvert = $input->getOption('invert-match-constraint');
$messages = array();
$outputPackages = array();