The docs have the following snippet for flags:
<?php
public function handle()
{
$message = "Hello World";
if ($this->hasFlag('shout')) {
$message = strtoupper($message);
}
$this->getPrinter()->display($message);
}
However then I try to use hasFlag I receive the following output.
public function handle()
{
var_dump($this->hasFlag('verbose')); // bool(false)
}
public function handle()
{
var_dump($this->hasFlag('--verbose')); // bool(true)
}
My question is: Are the docs wrong in this case or is the implementation wrong?