Commit: 4ef2cb75119666cfe8660ffef777efbb8c84f23c
Author: gwoo | Date: 2011-07-19 18:16:35 -0700
diff --git a/extensions/command/BranchUpgrade.php b/extensions/command/BranchUpgrade.php
index 69dcd67..caeaeae 100644
--- a/extensions/command/BranchUpgrade.php
+++ b/extensions/command/BranchUpgrade.php
@@ -23,7 +23,9 @@ namespace lithium_qa\extensions\command;
*/
class BranchUpgrade extends \lithium\console\Command {
- public function run($path) {
+ public function run() {
+ $path = $this->request->action;
+
if (count($this->request->params['passed']) < 3) {
$this->error('Not enough arguments given.');
return false;
diff --git a/extensions/command/Covered.php b/extensions/command/Covered.php
index 39b771b..8fdb395 100644
--- a/extensions/command/Covered.php
+++ b/extensions/command/Covered.php
@@ -25,7 +25,9 @@ class Covered extends \lithium\console\Command {
* @param string $path Absolute path to file or directory.
* @return boolean
*/
- public function run($path) {
+ public function run() {
+ $path = $this->request->action;
+
if (!$path = realpath($path)) {
$this->error('Not a valid path.');
return false;
diff --git a/extensions/command/Syntax.php b/extensions/command/Syntax.php
index 201bed1..3842b1e 100644
--- a/extensions/command/Syntax.php
+++ b/extensions/command/Syntax.php
@@ -55,7 +55,9 @@ class Syntax extends \lithium\console\Command implements \spriebsch\PHPca\Progre
* @param string $path Absolute path to file or directory.
* @return boolean
*/
- public function run($path = '.') {
+ public function run() {
+ $path = $this->request->action;
+
if (!$path = realpath($path)) {
$this->error('Not a valid path.');
return false;