Skip to content

Commit

Permalink
Merge branch 'MDL-70643' of git://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed Feb 10, 2021
2 parents 407ed3f + e0d3b45 commit 1fb0a41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions admin/cli/install_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
--agree-license Indicates agreement with software license.
--fullname=STRING Name of the site
--shortname=STRING Name of the site
--summary=STRING The summary to be displayed on the front page
-h, --help Print out this help
Example:
Expand Down Expand Up @@ -96,6 +97,7 @@
'adminemail' => '',
'fullname' => '',
'shortname' => '',
'summary' => '',
'agree-license' => false,
'help' => false
),
Expand All @@ -104,6 +106,11 @@
)
);

if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}

// We show help text even if tables are installed.
if ($options['help']) {
echo $help;
Expand Down

0 comments on commit 1fb0a41

Please sign in to comment.