[TwigBridge] Fix inconsistency in LintCommand help
This commit is contained in:
parent
e8901b1669
commit
f54bb16862
@ -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
|
||||
)
|
||||
;
|
||||
|
Reference in New Issue
Block a user