Skip to content

Commit 9e93c40

Browse files
committed
Don't register prefixed non-primary aliases
just the primary alias (as in, the command ID) is enough
1 parent 743e6c8 commit 9e93c40

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/command/SimpleCommandMap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ public function register(string $fallbackPrefix, Command $command, string $prefe
163163
$this->mapAlias($fallbackPrefix . ":" . $preferredAlias, $command, $registeredAliases);
164164

165165
foreach($otherAliases as $alias){
166-
$this->mapAlias($fallbackPrefix . ":" . $alias, $command, $registeredAliases);
167166
if(!isset($this->aliasToCommandMap[$alias])){
168167
$this->mapAlias($alias, $command, $registeredAliases);
169168
}

0 commit comments

Comments
 (0)