[Solar-svn] Revision 3102
pmjones at solarphp.com
pmjones at solarphp.com
Fri Apr 11 20:50:15 CDT 2008
Solar_Getopt: [DEL] Usage of 'strict' is unexpected in almost all situations; get rid of it.
Modified: trunk/Solar/Getopt.php
===================================================================
--- trunk/Solar/Getopt.php 2008-04-11 15:50:30 UTC (rev 3101)
+++ trunk/Solar/Getopt.php 2008-04-12 01:50:14 UTC (rev 3102)
@@ -18,10 +18,6 @@
* @todo Add load() method similar to Solar_Form::load(), for loading from
* external XML, PHP array, etc. files.
*
- * @todo Config to stop processing options after first numeric? This would
- * force options to come before the numeric params, making the invocation more
- * strict (and cleaner-looking).
- *
*/
class Solar_Getopt extends Solar_Base {
@@ -35,18 +31,11 @@
* : (string) The data-filter class to use when validating and sanitizing
* parameter values. Default is 'Solar_Filter'.
*
- * `strict`
- * : (bool) If true, will not process any more options after the first
- * non-option-related parameter. This forces all numeric parameters to
- * come after the last option. If false, numeric parameters unrelated to
- * any particular option can be mixed in with the options.
- *
* @var array
*
*/
protected $_Solar_Getopt = array(
'filter_class' => 'Solar_Filter',
- 'strict' => true,
);
/**
@@ -364,11 +353,6 @@
} else {
// numeric
$this->_values[] = $arg;
- // in strict mode, this indicates that no more options
- // should be procesed.
- if ($this->_config['strict']) {
- $done = true;
- }
}
}
}
More information about the Solar-svn
mailing list