From 69ff63c3b5478eb61259768b3cf0915ce8230a9a Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Wed, 31 Aug 2016 13:03:19 +0200 Subject: [PATCH] Document #26 --- docs/command-definition.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/command-definition.md b/docs/command-definition.md index 955fd6a..69cfb29 100644 --- a/docs/command-definition.md +++ b/docs/command-definition.md @@ -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) { + // ... +}); +```