Repository navigation
1.5.0
This release contains improvements on command arguments and options, by @thecrypticace:
-
Allow options to have default values (#25, documentation)
$app->command('greet [--age=]', function ($age) { // ... })->defaults([ 'age' => 25, ]);;
-
Default values can now be inferred from the callable's parameters (#25, documentation)
$app->command('greet [name] [--age=]', function ($name = 'John', $age = 25) { // ... });
-
Fixed: matching arguments and options containing hyphens (#26, documentation)
$app->command('run [--dry-run]', function ($dryRun) { // ... });