Skip to content

Commit 97c3102

Browse files
committed
minor #19148 [TwigBridge] Fix inconsistency in LintCommand help (chalasr)
This PR was merged into the 2.7 branch. Discussion ---------- [TwigBridge] Fix inconsistency in LintCommand help | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19139 (comment) | License | MIT | Doc PR | ~ Actually, the `lint:yaml` command's help looks like this: ![](http://image.prntscr.com/image/95dddf38ebcf408b8e2e23cf09c3ddf6.png) The last `Or` about STDIN is syntactically wrong, and is the only one to have a code example with indentation. This gives the same indentation for all code blocks and move the STDIN-related part as first, as proposed in #19139 (comment) . Now it looks like: ![](http://image.prntscr.com/image/8877349f6be746c981c2e9037d2d17ff.png) Commits ------- f54bb16 [TwigBridge] Fix inconsistency in LintCommand help
2 parents 989f821 + f54bb16 commit 97c3102

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/Symfony/Bridge/Twig/Command/LintCommand.php

+8-7
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,19 @@ protected function configure()
6565
The <info>%command.name%</info> command lints a template and outputs to STDOUT
6666
the first encountered syntax error.
6767
68-
You can validate the syntax of a file:
68+
You can validate the syntax of contents passed from STDIN:
6969
70-
<info>php %command.full_name% filename</info>
70+
<info>cat filename | php %command.full_name%</info>
7171
72-
Or of a whole directory:
72+
Or the syntax of a file:
73+
74+
<info>php %command.full_name% filename</info>
7375
74-
<info>php %command.full_name% dirname</info>
75-
<info>php %command.full_name% dirname --format=json</info>
76+
Or of a whole directory:
7677
77-
You can also pass the template contents from STDIN:
78+
<info>php %command.full_name% dirname</info>
79+
<info>php %command.full_name% dirname --format=json</info>
7880
79-
<info>cat filename | php %command.full_name%</info>
8081
EOF
8182
)
8283
;

0 commit comments

Comments
 (0)