Commit 1368bd17 authored by Aaron Wells's avatar Aaron Wells

Bug 1496616: Show the right script name in cli.php help text

behatnotneeded: Can't behat test CLI scripts

Change-Id: Ic83251491c745bb4375d40510139365a5e004800
(cherry picked from commit 40620910)
parent 2a460394
......@@ -404,7 +404,8 @@ class cli {
public function cli_print_help($exitcode = 0) {
// Display usage information
printf ("Usage: %s ", basename(__FILE__));
global $argv;
printf ("Usage: %s ", basename($argv[0]));
$options = array();
foreach ($this->settings->options as $option => $settings) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment