1
0
mirror of synced 2025-03-24 08:53:52 +03:00

Comments.

This commit is contained in:
Jonathan.Wage 2007-10-11 04:13:23 +00:00
parent c5e1a15f5a
commit cdc4943263

View File

@ -75,6 +75,7 @@ class Doctrine_Cli
{
$args = array_values($args);
// First lets load populate an array with all the possible arguments. required and optional
$prepared = array();
$requiredArguments = $taskInstance->getRequiredArguments();
@ -87,6 +88,7 @@ class Doctrine_Cli
$prepared[$arg] = null;
}
// If we have a config array then lets try and fill some of the arguments with the config values
if (is_array($this->config) && !empty($this->config)) {
foreach ($this->config as $key => $value) {
if (array_key_exists($key, $prepared)) {
@ -95,6 +97,7 @@ class Doctrine_Cli
}
}
// Now lets fill in the entered arguments to the prepared array
$copy = $args;
foreach ($prepared as $key => $value) {
if (!$value && !empty($copy)) {