So I made command with two arguments:
class ServerCommand extends ContainerAwareCommand
{
protected function configure()
{
$this
->setName('chat:server')
->setDescription('Start the Chat server')
->addArgument('host', InputArgument::REQUIRED, 'Provide a hostname')
->addArgument('port', InputArgument::OPTIONAL, 'Provide a port number')
;
}
but server:chat command not asking me to provide arguments.
How to ask user to provide input in custom Console Command?