src/Command/RunCommand.php
protected function configure()
    {
        $this
            // the name of the command (the part after "bin/bluzman")
            ->setName('run')
            // the short description shown while running "php bin/bluzman list"
            ->setDescription('Run controller')
            // the full command description shown when running the command with
            // the "--help" option
            ->setHelp('Run specified controller with options params')
        ;

        $uri = new InputArgument(
            'uri',
            InputArgument::REQUIRED,
            'URI to call'
        );

        $this->getDefinition()->addArgument($uri);


        $debug = new InputOption(
            '--debug',
            '-d',
            InputOption::VALUE_NONE,
            'Display debug information'
        );

        $this->getDefinition()->addOption($debug);
    }
protected function configure()
    {
        $this
            // the name of the command (the part after "bin/bluzman")
            ->setName('run')
            // the short description shown while running "php bin/bluzman list"
            ->setDescription('Run controller')
            // the full command description shown when running the command with
            // the "--help" option
            ->setHelp('Run specified controller with options params')
        ;

        $uri = new InputArgument(
            'uri',
            InputArgument::REQUIRED,
            'URI to call'
        );

        $this->getDefinition()->addArgument($uri);


        $debug = new InputOption(
            '--debug',
            '-d',
            InputOption::VALUE_NONE,
            'Display debug information'
        );

        $this->getDefinition()->addOption($debug);
    }
Command configuration