aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2016-03-08 00:32:59 -0800
committerMatt Friedman <maf675@gmail.com>2016-03-08 00:34:27 -0800
commit0f8790dd2e804ccbc7d6c1e444c1d31412d7aaa4 (patch)
treeacc743cdef14f92b81240c75348081e4159be69e
parent0c1e7c2f9cf81c1e487a0dcd2fb9e053de14c275 (diff)
downloadforums-0f8790dd2e804ccbc7d6c1e444c1d31412d7aaa4.tar
forums-0f8790dd2e804ccbc7d6c1e444c1d31412d7aaa4.tar.gz
forums-0f8790dd2e804ccbc7d6c1e444c1d31412d7aaa4.tar.bz2
forums-0f8790dd2e804ccbc7d6c1e444c1d31412d7aaa4.tar.xz
forums-0f8790dd2e804ccbc7d6c1e444c1d31412d7aaa4.zip
[ticket/12684] Add extended help for the user:add command
PHPBB3-12684
-rw-r--r--phpBB/language/en/cli.php3
-rw-r--r--phpBB/phpbb/console/command/user/add.php1
2 files changed, 4 insertions, 0 deletions
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 <info>%command.name%</info> 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 <info>--send-email</info> 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',