Pagekit\Application\Console\Command::option PHP 메소드

option() 공개 메소드

Get the value of a command option.
public option ( string $key = null ) : string | array
$key string
리턴 string | array
    public function option($key = null)
    {
        if (is_null($key)) {
            return $this->input->getOptions();
        }
        return $this->input->getOption($key);
    }