[ticket/12684] Add shorthand alternates to the options

PHPBB3-12684
This commit is contained in:
Matt Friedman 2016-03-08 00:06:10 -08:00
parent cc941e6e05
commit 0c1e7c2f9c

View file

@ -84,19 +84,19 @@ class add extends \phpbb\console\command\command
->setDescription($this->language->lang('CLI_DESCRIPTION_USER_ADD')) ->setDescription($this->language->lang('CLI_DESCRIPTION_USER_ADD'))
->addOption( ->addOption(
'username', 'username',
null, 'U',
InputOption::VALUE_REQUIRED, InputOption::VALUE_REQUIRED,
$this->language->lang('CLI_DESCRIPTION_USER_ADD_OPTION_USERNAME') $this->language->lang('CLI_DESCRIPTION_USER_ADD_OPTION_USERNAME')
) )
->addOption( ->addOption(
'password', 'password',
null, 'P',
InputOption::VALUE_REQUIRED, InputOption::VALUE_REQUIRED,
$this->language->lang('CLI_DESCRIPTION_USER_ADD_OPTION_PASSWORD') $this->language->lang('CLI_DESCRIPTION_USER_ADD_OPTION_PASSWORD')
) )
->addOption( ->addOption(
'email', 'email',
null, 'E',
InputOption::VALUE_REQUIRED, InputOption::VALUE_REQUIRED,
$this->language->lang('CLI_DESCRIPTION_USER_ADD_OPTION_EMAIL') $this->language->lang('CLI_DESCRIPTION_USER_ADD_OPTION_EMAIL')
) )