Anonymous commands cannot be called by name:
php
protected function configure()
{
$this
->beginCommand('add')
->markAnonymous()
->addArgument('host', Argument::REQUIRED)
->end()
...
;
}
The name "add" is given to the command only to access the command later
on. Since the command is anonymous, the name cannot be passed when
when calling the command:
php
$ ./console add localhost
Instead, the command should be called without name:
php
$ ./console localhost