mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-21 22:08:41 +00:00
Added shell arg handler
This commit is contained in:
parent
d26e71971f
commit
704489a95e
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user