Silly v1.5.0 Release Notes
Release Date: 2016-08-31 // over 7 years ago-
๐ 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) {// ...});