diff --git a/src/Symfony/Bundle/TwigBundle/Command/LintCommand.php b/src/Symfony/Bundle/TwigBundle/Command/LintCommand.php index 46b7d338cc..ff5f37b6c0 100644 --- a/src/Symfony/Bundle/TwigBundle/Command/LintCommand.php +++ b/src/Symfony/Bundle/TwigBundle/Command/LintCommand.php @@ -30,32 +30,28 @@ class LintCommand extends ContainerAwareCommand ->setDescription('Lints a template and outputs eventual errors.') ->addArgument('filename') ->setHelp(<<%command.name% command lints a template and outputs to stdout +The %command.name% command lints a template and outputs to stdout the first encountered syntax error. php %command.full_name% filename -The command will get the contents of "filename" and will validates its syntax. +The command gets the contents of filename and validates its syntax. php %command.full_name% dirname -The command will find all twig templates in dirname and will validate the syntax +The command finds all twig templates in dirname and validates the syntax of each Twig template. php %command.full_name% @AcmeMyBundle -The command will find all twig templates in bundle AcmeMyBundle and will validate -the syntax of each one. +The command finds all twig templates in the AcmeMyBundle bundle and validates +the syntax of each Twig template. cat filename | php %command.full_name% -The command will get the template contents from stdin and will validates its syntax. - -This command will return these error codes: - - 1 if template is invalid - - 2 if file doesn't exists or stdin is empty. +The command gets the template contents from stdin and validates its syntax. EOF - ) + ) ; } @@ -104,4 +100,3 @@ EOF $output->writeln('No syntax error detected.'); } } -