From cdc4943263d5e12e15864d8c43f6b429c3bea233 Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Thu, 11 Oct 2007 04:13:23 +0000 Subject: [PATCH] Comments. --- lib/Doctrine/Cli.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Doctrine/Cli.php b/lib/Doctrine/Cli.php index 44ad9b9e3..9b2867154 100644 --- a/lib/Doctrine/Cli.php +++ b/lib/Doctrine/Cli.php @@ -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)) {