Silly v1.5.0 Release Notes

Release Date: 2016-08-31 // over 5 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) {// ...});