From 17be361fbd5f39738b78cecff3da64fc8bf4363e Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 17 Nov 2010 18:34:25 -0200 Subject: Adding database argument to isis:info task --- lib/task/isisInfoTask.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/task') diff --git a/lib/task/isisInfoTask.class.php b/lib/task/isisInfoTask.class.php index da4836c..1124773 100644 --- a/lib/task/isisInfoTask.class.php +++ b/lib/task/isisInfoTask.class.php @@ -4,6 +4,7 @@ class isisInfoTask extends mySfTask { protected function configure() { + $this->addArgument('database', sfCommandArgument::OPTIONAL, 'Optional database name'); $this->addOptions(array( new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), @@ -36,6 +37,6 @@ EOF; } // Database information. - $isis->info($this, 'task'); + $isis->info($this, 'task', $arguments['database']); } } -- cgit v1.2.3