cvs: php4 /pear/scripts pear.in

From: Date: Wed, 23 May 2001 14:38:09 +0000
Subject: cvs: php4 /pear/scripts pear.in
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-184@lists.php.net to get a copy of this message
cox Wed May 23 07:38:09 2001 EDT Modified files: /php4/pear/scripts pear.in Log: -Changed $param[0] to $param{0} less ambiguous -Readd "-?" param that shows the usage msg Index: php4/pear/scripts/pear.in diff -u php4/pear/scripts/pear.in:1.5 php4/pear/scripts/pear.in:1.6 --- php4/pear/scripts/pear.in:1.5 Tue May 22 09:30:36 2001 +++ php4/pear/scripts/pear.in Wed May 23 07:38:09 2001 @@ -25,7 +25,7 @@ error_reporting(E_ALL ^ E_NOTICE); -$options = Console_Getopt::getopt($argv, "hv:e:p:d:"); +$options = Console_Getopt::getopt($argv, "h?v:e:p:d:"); if (PEAR::isError($options)) { usage($options); } @@ -38,19 +38,19 @@ $verbose = $param; break; case 'e': - if ($param[0] != DIRECTORY_SEPARATOR) { + if ($param{0} != DIRECTORY_SEPARATOR) { usage (new PEAR_Error("no absolute path (ej. /usr/lib/php)\n")); } $ext_dir = $param; break; case 'p': - if ($param[0] != DIRECTORY_SEPARATOR) { + if ($param{0} != DIRECTORY_SEPARATOR) { usage (new PEAR_Error("no absolute path (ej. /usr/lib/php)\n")); } $script_dir = $param; break; case 'd': - if ($param[0] != DIRECTORY_SEPARATOR) { + if ($param{0} != DIRECTORY_SEPARATOR) { usage (new PEAR_Error("no absolute path (ej. /usr/lib/php)\n")); } $doc_dir = $param; @@ -104,7 +104,7 @@ " -p <dir> set script install dir (absolute path)\n". " -e <dir> set extension install dir (absolute path)\n". " -d <dir> set documentation dest dir (absolute path)\n". - " -h display help/usage (this message)\n". + " -h, -? display help/usage (this message)\n". "Commands:\n". " install <package file>\n". " package [package info file]\n".

« previous php.pear.cvs (#184) next »