Add check if argument is set

This commit is contained in:
Maarten 2020-02-13 19:25:30 +01:00
parent 90cba517cb
commit 3bb1ecb748

View file

@ -54,6 +54,8 @@ class Command
*/ */
public function argument($name) public function argument($name)
{ {
if(!isset($this->args[$name])) return '';
return $this->args[$name]; return $this->args[$name];
} }