Empty shortcut check in the constructor

This commit is contained in:
Arnaud Kleinpeter 2012-05-20 14:59:46 +02:00
parent cf9039e88b
commit 2c19b3c7e5

View File

@ -58,6 +58,10 @@ class InputOption
if ('-' === $shortcut[0]) {
$shortcut = substr($shortcut, 1);
}
if (empty($shortcut)) {
$shortcut = null;
}
}
if (null === $mode) {