Skip to content

Commit

Permalink
Document #26
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Aug 31, 2016
1 parent 9fd1688 commit 69ff63c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/command-definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@ $app->command('greet name [--yell]', function () {
'--yell' => 'If set, the task will yell in uppercase letters',
]);
```

## Hyphens

Arguments and options containing hyphens (`-`) are matched to camelCase variables:

```php
$app->command('run [--dry-run]', function ($dryRun) {
// ...
});
```

0 comments on commit 69ff63c

Please sign in to comment.