-
Couldn't load subscription status.
- Fork 57
Closed
Description
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?
Metadata
Metadata
Assignees
Labels
No labels