Ticket Details

li3 help command should accept lowercase commands

ENHANCEMENT Ticket (closed)

Noticed some changes in the console, decided to finally try it out.

###What happened:

Running ```li3 help create``` produces ```Command `create` not found``` although both the api docs for the help command and the output of ```li3 help``` show commands in lowercase format (and the command itself is actually runnable lowercased). Running ```li3 help Create``` produces the expected output.

###What was expected:

Running ```li3 help command``` should output help for the command, if it exists.

###Failing test:

{{{
	public function testRunWithLcName() {
		$command = new Help(array(
			'request' => $this->request, 'classes' => $this->classes
		));
		$result = $command->run('test');
		$this->assertTrue($result);

		$expected = "li3 test [--case=<string>] [--group=<string>] [--filters=<string>]";
		$result = $command->response->output;
		$this->assertTrue(strpos($result, $expected) !== false);
	}
}}}
on 05.12.11 reported by: edmunc owned by: daschl

Updates

on 05.13.11 by daschl
  • owner was changed to daschl
  • type was changed to enhancement
  • status was changed to in progress
  • priority was changed to normal
Thanks for the ticket! 

Additionally, you can also use `li3 comand --help`.
(fixed) on 05.31.11 by daschl
  • status was changed to closed
  • resolution was changed to fixed
fixed in http://rad-dev.org/lithium/commits/view/cbe969f66cbc6652fb134151c5c38c5a3371278e

thanks for the ticket!