Pagekit\Application\Console\Command::option PHP Méthode

option() public méthode

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