Skip to content

Commit 53c6779

Browse files
[Console] enable describing commands in ways that make the list command lazy
1 parent acc0ba1 commit 53c6779

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Command/LintCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
class LintCommand extends Command
3434
{
3535
protected static $defaultName = 'lint:yaml';
36+
protected static $defaultDescription = 'Lints a file and outputs encountered errors';
3637

3738
private $parser;
3839
private $format;
@@ -54,7 +55,7 @@ public function __construct(string $name = null, callable $directoryIteratorProv
5455
protected function configure()
5556
{
5657
$this
57-
->setDescription('Lints a file and outputs encountered errors')
58+
->setDescription(self::$defaultDescription)
5859
->addArgument('filename', InputArgument::IS_ARRAY, 'A file, a directory or "-" for reading from STDIN')
5960
->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format')
6061
->addOption('parse-tags', null, InputOption::VALUE_NONE, 'Parse custom tags')

0 commit comments

Comments
 (0)