think\console\Command::addArgument PHP Method

addArgument() public method

添加参数
public addArgument ( string $name, integer $mode = null, string $description = '', mixed $default = null ) : Command
$name string 名称
$mode integer 类型
$description string 描述
$default mixed 默认值
return Command
    public function addArgument($name, $mode = null, $description = '', $default = null)
    {
        $this->definition->addArgument(new Argument($name, $mode, $description, $default));
        return $this;
    }