[TwigBridge] Fix inconsistency in LintCommand help

This commit is contained in:
Robin Chalas 2016-06-22 23:40:57 +02:00
parent e8901b1669
commit f54bb16862
No known key found for this signature in database
GPG Key ID: 89672113756EE03B
1 changed files with 8 additions and 7 deletions

View File

@ -65,18 +65,19 @@ class LintCommand extends Command
The <info>%command.name%</info> command lints a template and outputs to STDOUT
the first encountered syntax error.
You can validate the syntax of a file:
You can validate the syntax of contents passed from STDIN:
<info>php %command.full_name% filename</info>
<info>cat filename | php %command.full_name%</info>
Or the syntax of a file:
<info>php %command.full_name% filename</info>
Or of a whole directory:
<info>php %command.full_name% dirname</info>
<info>php %command.full_name% dirname --format=json</info>
<info>php %command.full_name% dirname</info>
<info>php %command.full_name% dirname --format=json</info>
You can also pass the template contents from STDIN:
<info>cat filename | php %command.full_name%</info>
EOF
)
;