From 0f8790dd2e804ccbc7d6c1e444c1d31412d7aaa4 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Tue, 8 Mar 2016 00:32:59 -0800 Subject: [PATCH] [ticket/12684] Add extended help for the user:add command PHPBB3-12684 --- phpBB/language/en/cli.php | 3 +++ phpBB/phpbb/console/command/user/add.php | 1 + 2 files changed, 4 insertions(+) diff --git a/phpBB/language/en/cli.php b/phpBB/language/en/cli.php index dab7e2efdd..481a417553 100644 --- a/phpBB/language/en/cli.php +++ b/phpBB/language/en/cli.php @@ -131,4 +131,7 @@ $lang = array_merge($lang, array( // Additional help for commands. $lang = array_merge($lang, array( 'CLI_HELP_CRON_RUN' => $lang['CLI_DESCRIPTION_CRON_RUN'] . ' Optionally you can specify a cron task name to run only the specified cron task.', + 'CLI_HELP_USER_ADD' => 'The %command.name% command adds a new user: +If this command is run without options, you will be prompted to enter them. +To optionally send an email to the new user, use the --send-email option.', )); diff --git a/phpBB/phpbb/console/command/user/add.php b/phpBB/phpbb/console/command/user/add.php index 42ff000ca4..a0da15915d 100644 --- a/phpBB/phpbb/console/command/user/add.php +++ b/phpBB/phpbb/console/command/user/add.php @@ -82,6 +82,7 @@ class add extends \phpbb\console\command\command $this ->setName('user:add') ->setDescription($this->language->lang('CLI_DESCRIPTION_USER_ADD')) + ->setHelp($this->language->lang('CLI_HELP_USER_ADD')) ->addOption( 'username', 'U',