Added shell arg handler

This commit is contained in:
Dennis Eichhorn 2016-08-14 12:10:51 +02:00
parent d26e71971f
commit 704489a95e

View File

@ -221,4 +221,13 @@ class ArrayUtils
return $csv;
}
public static function getArg(string $id, array $args)
{
if(($key = array_search($id, $args)) === false || $key === count($args) - 1) {
return null;
}
return $args[$key+1];
}
}