diff options
-rw-r--r-- | pear/scripts/pear.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pear/scripts/pear.in b/pear/scripts/pear.in index c16b475635..cd81aa0a40 100644 --- a/pear/scripts/pear.in +++ b/pear/scripts/pear.in @@ -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"; } |