Browse Source

Add missing argument.

Without this argument calls with two arguments would be
treated as invalid shell commands.
mark_story 14 years ago
parent
commit
f5ae9622e6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/Cake/Console/Command/TestShell.php

+ 3 - 0
lib/Cake/Console/Command/TestShell.php

@@ -47,6 +47,9 @@ class TestShell extends Shell {
 		$parser = new ConsoleOptionParser($this->name);
 		$parser->description(array(
 			__d('cake_console', 'The CakePHP Testsuite allows you to run test cases from the command line'),
+		))->addArgument('category', array(
+			'help' => __d('cake_console', 'The category for the test, or test file, to test.'),
+			'required' => false,
 		))->addArgument('file', array(
 			'help' => __d('cake_console', 'The path to the file, or test file, to test.'),
 			'required' => false,