X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fstecman%2Fsymfony-console-completion%2Fsrc%2FCompletionCommand.php;fp=vendor%2Fstecman%2Fsymfony-console-completion%2Fsrc%2FCompletionCommand.php;h=0a4a8090e732c6cb581bc6f49f766d7bf2513e34;hp=b51666a1dee2ac5e39a97df83ad1bc8e6b995bab;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/stecman/symfony-console-completion/src/CompletionCommand.php b/vendor/stecman/symfony-console-completion/src/CompletionCommand.php index b51666a1d..0a4a8090e 100644 --- a/vendor/stecman/symfony-console-completion/src/CompletionCommand.php +++ b/vendor/stecman/symfony-console-completion/src/CompletionCommand.php @@ -33,6 +33,12 @@ Or for an alias: END ); + + // Hide this command from listing if supported + // Command::setHidden() was not available before Symfony 3.2.0 + if (method_exists($this, 'setHidden')) { + $this->setHidden(true); + } } /** @@ -56,8 +62,7 @@ END $alias = $input->getOption('program'); $multiple = (bool)$input->getOption('multiple'); - // When completing for multiple apps having absolute path in the alias doesn't make sense. - if (!$alias && $multiple) { + if (!$alias) { $alias = basename($program); }