Skip to content

Commit 2d330b2

Browse files
committed
minor symfony#24110 [Form] Add help description to debug:form command (yceruto)
This PR was merged into the 3.4 branch. Discussion ---------- [Form] Add help description to debug:form command | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - I forgot to add this one in the introduction of the command. Commits ------- f8afe02 Add help description to debug:form command
2 parents 3d799dd + f8afe02 commit 2d330b2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Symfony/Component/Form/Command/DebugCommand.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ protected function configure()
5151
new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt or json)', 'txt'),
5252
))
5353
->setDescription('Displays form type information')
54+
->setHelp(<<<'EOF'
55+
The <info>%command.name%</info> command displays information about a form type.
56+
57+
Either the fully-qualified class name or the short class name can be used:
58+
59+
<info>php %command.full_name% Symfony\Component\Form\Extension\Core\Type\ChoiceType</info>
60+
<info>php %command.full_name% ChoiceType</info>
61+
62+
EOF
63+
)
5464
;
5565
}
5666

0 commit comments

Comments
 (0)