]> granicus.if.org Git - php/commitdiff
* moved the {config xxx} help message substitution to
authorStig Bakken <ssb@php.net>
Tue, 14 May 2002 01:45:20 +0000 (01:45 +0000)
committerStig Bakken <ssb@php.net>
Tue, 14 May 2002 01:45:20 +0000 (01:45 +0000)
  PEAR_Command_Common::getHelp

pear/scripts/pear.in

index fbc2bc05e56287ea43e5464930208911a88ff80a..7cb2d641497acdb072c07fc401c30b0e93457d10 100644 (file)
@@ -217,7 +217,6 @@ function cmdHelp($command)
         "     -h, -?     display help/usage (this message)\n";
     } elseif ($help = PEAR_Command::getHelp($command)) {
         if (is_string($help)) {
-            $help = preg_replace('/{config\s+([^\}]+)}/e', "\$config->get('\1')", $help);
             return "Usage : $help";
         }
         return "Usage : $progname $command {$help[0]}\n{$help[1]}";