Make invalid short option error more helpful.

Refs #3157
This commit is contained in:
mark_story 2012-08-27 22:12:05 -04:00
parent fba17cffe9
commit b27c8a05bd

View file

@ -93,7 +93,7 @@ class ConsoleInputOption {
}
if (strlen($this->_short) > 1) {
throw new ConsoleException(
__d('cake_console', 'Short options must be one letter.')
__d('cake_console', 'Short option "%s" is invalid, short options must be one letter.', $this->_short)
);
}
}