Skip to content

Commit dc179cf

Browse files
committed
Update CmdTrait.php
1 parent c8c8607 commit dc179cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Ubiquity/devtools/cmd/traits/CmdTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ protected static function getBooleanOption($options, $option, $longOption, $defa
8282
return $option;
8383
}
8484

85+
protected static function hasOption($options, $option, $longOption): bool {
86+
return isset($options[$option]) || isset($options[$longOption]);
87+
}
88+
8589
protected static function requiredParam($what, $paramName) {
8690
if ($what == null) {
8791
ConsoleFormatter::showMessage($paramName . ' is a required parameter', 'error');

0 commit comments

Comments
 (0)