mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Be nicer with the help
This commit is contained in:
parent
7770b625ba
commit
149dcec76f
1 changed files with 6 additions and 2 deletions
|
@ -242,9 +242,13 @@ function cmdHelp($command)
|
|||
|
||||
} elseif ($help = PEAR_Command::getHelp($command)) {
|
||||
if (is_string($help)) {
|
||||
return "pear $command [options] $help\n";
|
||||
return "$progname $command [options] $help\n";
|
||||
}
|
||||
if ($help[1] === null) {
|
||||
return "$progname $command $help[0]";
|
||||
} else {
|
||||
return "$progname $command [options] $help[0]\n$help[1]";
|
||||
}
|
||||
return "pear $command [options] $help[0]\n$help[1]";
|
||||
}
|
||||
return "No such command";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue