cvs: pear-core /PEAR/Command Config.php

From: Date: Sat, 14 Aug 2004 14:15:23 +0000
Subject: cvs: pear-core /PEAR/Command Config.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-22899@lists.php.net to get a copy of this message
cellog Sat Aug 14 10:15:23 2004 EDT Modified files: /pear-core/PEAR/Command Config.php Log: more verbose help specify the channel for config-show http://cvs.php.net/diff.php/pear-core/PEAR/Command/Config.php?r1=1.28&r2=1.29&ty=u Index: pear-core/PEAR/Command/Config.php diff -u pear-core/PEAR/Command/Config.php:1.28 pear-core/PEAR/Command/Config.php:1.29 --- pear-core/PEAR/Command/Config.php:1.28 Sun Jul 4 00:25:08 2004 +++ pear-core/PEAR/Command/Config.php Sat Aug 14 10:15:22 2004 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.28 2004/07/04 04:25:08 cellog Exp $ +// $Id: Config.php,v 1.29 2004/08/14 14:15:22 cellog Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Config.php"; @@ -37,10 +37,12 @@ 'function' => 'doConfigShow', 'shortcut' => 'csh', 'options' => array(), - 'doc' => ' + 'doc' => '[layer] Displays all configuration values. An optional argument may be used to tell which configuration layer to display. Valid -configuration layers are "user", "system" and "default". +configuration layers are "user", "system" and "default". To display +configurations for different channels, set the default_channel +configuration variable and run config-show again. ', ), 'config-get' => array( @@ -54,7 +56,8 @@ may be used to tell which configuration layer to look in. Valid configuration layers are "user", "system" and "default". If no layer is specified, a value will be picked from the first layer that defines the parameter, in the order -just specified. +just specified. The configuration value will be retrieved for the channel +specified by the default_channel configuration variable. ', ), 'config-set' => array( @@ -68,7 +71,9 @@ parameters are subject to validation, and the command will fail with an error message if the new value does not make sense. An optional third argument may be used to specify in which layer to set the -configuration parameter. The default layer is "user". +configuration parameter. The default layer is "user". The +configuration value will be set for the current channel, which +is controlled by the default_channel configuration variable. ', ), 'config-help' => array( @@ -108,7 +113,7 @@ } $keys = $this->config->getKeys(); sort($keys); - $data = array('caption' => 'Configuration:'); + $data = array('caption' => 'Configuration (channel ' . $this->config->get('default_channel') . '):'); foreach ($keys as $key) { $type = $this->config->getType($key); $value = $this->config->get($key, @$params[0]);

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