Add check if argument is set
This commit is contained in:
parent
90cba517cb
commit
3bb1ecb748
1 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,8 @@ class Command
|
|||
*/
|
||||
public function argument($name)
|
||||
{
|
||||
if(!isset($this->args[$name])) return '';
|
||||
|
||||
return $this->args[$name];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue