1 | <?php |
||
10 | class Utils |
||
11 | { |
||
12 | /** |
||
13 | * `getopts` is very convenient, but annoying how one has to check for both |
||
14 | * the long & short versions for values; this will always return an array |
||
15 | * with the long opt as key, even if the user passed it as short. |
||
16 | * |
||
17 | * @param array $options [short => long] |
||
18 | * |
||
19 | * @return array |
||
20 | */ |
||
21 | public static function getopts($options) |
||
39 | } |
||
40 |