diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/migrate | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/migrate b/bin/migrate index ab3598d4..6336e387 100755 --- a/bin/migrate +++ b/bin/migrate @@ -19,8 +19,8 @@ $app->register(MigrationServiceProvider::class); $migration = $app->get('db.migration'); $migration->setOutput(function ($text) { echo $text . PHP_EOL; }); -if (isset($argv[1]) && strtolower($argv[1]) == 'help') { - echo PHP_EOL . 'Usage: ' . $argv[1] . ' [up|down] [one-step]' . PHP_EOL . PHP_EOL; +if (isset($argv[1]) && in_array(strtolower($argv[1]), ['help', '--help', '-h'])) { + echo PHP_EOL . 'Usage: ' . $argv[0] . ' [up|down] [one-step]' . PHP_EOL . PHP_EOL; exit; } |