From: David Coallier Date: Tue, 15 May 2007 23:46:21 +0000 (+0000) Subject: - Quickly reorganized some of the arguments array syntax. X-Git-Tag: RELEASE_1_2_0~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d3dad05deee207064c0a09f7e14335def5e602d;p=php - Quickly reorganized some of the arguments array syntax. --- diff --git a/ext/phar/phar/pharcommand.inc b/ext/phar/phar/pharcommand.inc index 50de20ccd5..532c54a12f 100755 --- a/ext/phar/phar/pharcommand.inc +++ b/ext/phar/phar/pharcommand.inc @@ -29,15 +29,57 @@ class PharCommand extends CLICommand static function phar_args($which, $phartyp) { $phar_args = array( - 'a' => array('typ'=>'alias', 'val'=>'newphar', 'inf'=>' Provide an alias name for the phar file.'), - 'c' => array('typ'=>'compalg','val'=>NULL, 'inf'=>' Compression algorithmus.', 'select'=>array('0'=>'No compression','none'=>'No compression','auto'=>'Automatically select compression algorithm')), - 'e' => array('typ'=>'entry', 'val'=>NULL, 'inf'=>' Name of entry to work on (must include PHAR internal directory name if any).'), - 'f' => array('typ'=>$phartyp, 'val'=>NULL, 'inf'=>' Specifies the phar file to work on.'), - 'h' => array('typ'=>'select', 'val'=>NULL, 'inf'=>' Selects the hash algorithmn.', 'select'=>array('md5'=>'MD5','sha1'=>'SHA1')), - 'i' => array('typ'=>'regex', 'val'=>NULL, 'inf'=>' Specifies a regular expression for input files.'), - 'm' => array('typ'=>'any', 'val'=>NULL, 'inf'=>' Meta data to store with entry (serialized php data).'), - 's' => array('typ'=>'file', 'val'=>NULL, 'inf'=>' Select the stub file.'), - 'x' => array('typ'=>'regex', 'val'=>NULL, 'inf'=>' Regular expression for input files to exclude.'), + 'a' => array( + 'typ' => 'alias', + 'val' => 'newphar', + 'inf' => ' Provide an alias name for the phar file.' + ), + 'c' => array( + 'typ' => 'compalg', + 'val' => NULL, + 'inf' => ' Compression algorithmus.', + 'select' => array( + '0' => 'No compression', + 'none' => 'No compression', + 'auto' => 'Automatically select compression algorithm' + ) + ), + 'e' => array( + 'typ' => 'entry', + 'val' => NULL, + 'inf' => ' Name of entry to work on (must include PHAR internal directory name if any).' + ), + 'f' => array( + 'typ' => $phartyp, + 'val' => NULL, + 'inf' => ' Specifies the phar file to work on.' + ), + 'h' => array( + 'typ' => 'select', + 'val' => NULL, + 'inf' => ' Selects the hash algorithmn.', + 'select' => array('md5' => 'MD5','sha1' => 'SHA1') + ), + 'i' => array( + 'typ' => 'regex', + 'val' => NULL, + 'inf' => ' Specifies a regular expression for input files.' + ), + 'm' => array( + 'typ' => 'any', + 'val' => NULL, + 'inf' => ' Meta data to store with entry (serialized php data).' + ), + 's' => array( + 'typ' => 'file', + 'val' => NULL, + 'inf' => ' Select the stub file.' + ), + 'x' => array( + 'typ' => 'regex', + 'val' => NULL, + 'inf' => ' Regular expression for input files to exclude.' + ), ); if (extension_loaded('zlib')) { @@ -680,4 +722,4 @@ class PharCommand extends CLICommand } } -?> \ No newline at end of file +?>