Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Show help instead of trying to run() as default action. This fixes the ... #59

Merged
merged 1 commit into from

2 participants

@webtechnick

...option parser issue of passing boolean flags before the subcommand. Example:

cake Migrations.migration -f generate
will now work as expected. Run is a subcommand, and described in the help to run it as such, not by default.

@webtechnick webtechnick Show help instead of trying to run() as default action. This fixes th…
…e option parser issue of passing boolean flags before the subcommand. Example: <pre>cake Migrations.migration -f generate</pre> will now work as expected. Run is a subcommand, and described in the help to run it as such, not by default.
1a899eb
@webtechnick

This resolves issue #58

@burzum burzum merged commit ef360db into CakeDC:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 3, 2012
  1. @webtechnick

    Show help instead of trying to run() as default action. This fixes th…

    webtechnick authored
    …e option parser issue of passing boolean flags before the subcommand. Example: <pre>cake Migrations.migration -f generate</pre> will now work as expected. Run is a subcommand, and described in the help to run it as such, not by default.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Console/Command/MigrationShell.php
View
2  Console/Command/MigrationShell.php
@@ -140,7 +140,7 @@ public function getOptionParser() {
* @return void
*/
public function main() {
- $this->run();
+ $this->out($this->getOptionParser()->help());
}
/**
Something went wrong with that request. Please try again.