protected function configure() { parent::configure(); $definition = new InputDefinition(); $definition->setDefinition(array(new InputArgument('username', InputArgument::REQUIRED, 'The username'), new InputArgument('role', InputArgument::OPTIONAL, 'The role'), new InputOption('user-system', null, InputOption::VALUE_REQUIRED, 'The user-system to use'), new InputOption('super', null, InputOption::VALUE_NONE, 'Instead specifying role, use this to quickly add the super administrator role'))); $this->setDefinition($definition); $this->setHelp(<<<EOT The <info>fos:user:demote</info> command demotes a user by removing a role <info>php app/console fos:user:demote --user-system=acme_user matthieu ROLE_CUSTOM</info> <info>php app/console fos:user:demote --user-system=acme_user --super matthieu</info> EOT ); }