Skip to content

Commit

Permalink
Corrected the addAlias function
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrik.wallgren committed Oct 25, 2009
1 parent 351bcee commit b87a213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/Flag.php
Expand Up @@ -73,7 +73,7 @@ public function __toString()
*/
public function addAlias($alias)
{
if (array_key_exists($flag, $this->aliases))
if (array_key_exists($alias, $this->aliases))
{
throw new Exception('Flag ('.$alias.') is already a alias for '.$this->name.'!');
}
Expand Down

0 comments on commit b87a213

Please sign in to comment.