From f54bb16862e30bcfc47eb1b75c0a4b77e13b9efd Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Wed, 22 Jun 2016 23:40:57 +0200 Subject: [PATCH] [TwigBridge] Fix inconsistency in LintCommand help --- src/Symfony/Bridge/Twig/Command/LintCommand.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Symfony/Bridge/Twig/Command/LintCommand.php b/src/Symfony/Bridge/Twig/Command/LintCommand.php index 8cbf3c062e..95d550a058 100644 --- a/src/Symfony/Bridge/Twig/Command/LintCommand.php +++ b/src/Symfony/Bridge/Twig/Command/LintCommand.php @@ -65,18 +65,19 @@ class LintCommand extends Command The %command.name% 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: -php %command.full_name% filename + cat filename | php %command.full_name% + +Or the syntax of a file: + + php %command.full_name% filename Or of a whole directory: -php %command.full_name% dirname -php %command.full_name% dirname --format=json + php %command.full_name% dirname + php %command.full_name% dirname --format=json -You can also pass the template contents from STDIN: - -cat filename | php %command.full_name% EOF ) ;