cvs: php4 /pear/scripts pear.in
| From: | Tomas V.V.Cox | Date: | Fri, 07 Jun 2002 08:05:48 +0000 |
| Subject: | cvs: php4 /pear/scripts pear.in | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4466@lists.php.net to get a copy of this message | ||
cox Fri Jun 7 04:05:48 2002 EDT
Modified files:
/php4/pear/scripts pear.in
Log:
Be nicer with the help
Index: php4/pear/scripts/pear.in
diff -u php4/pear/scripts/pear.in:1.58 php4/pear/scripts/pear.in:1.59
--- php4/pear/scripts/pear.in:1.58 Fri Jun 7 04:04:05 2002
+++ php4/pear/scripts/pear.in Fri Jun 7 04:05:48 2002
@@ -19,7 +19,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: pear.in,v 1.58 2002/06/07 08:04:05 cox Exp $
+// $Id: pear.in,v 1.59 2002/06/07 08:05:48 cox Exp $
/**
* @nodep Gtk
@@ -242,9 +242,13 @@
} 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";
}