Skip to content

Commit ac55748

Browse files
committed
Don't offer '_completion' as a command name
1 parent 91b3e1a commit ac55748

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Stecman/Component/Symfony/Console/BashCompletion/CompletionHandler.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ protected function completeForCommandName()
190190
$names = array();
191191

192192
foreach ($commands as $cmd) {
193-
$names[] = $cmd->getName();
193+
$name = $cmd->getName();
194+
if ($name != '_completion') {
195+
$names[] = $name;
196+
}
194197
}
195198

196199
return $names;

0 commit comments

Comments
 (0)