Browse Source

Make invalid short option error more helpful.

Refs #3157
mark_story 13 years ago
parent
commit
b27c8a05bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Console/ConsoleInputOption.php

+ 1 - 1
lib/Cake/Console/ConsoleInputOption.php

@@ -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)
 			);
 		}
 	}