Skip to content

Commit 6d6ad2e

Browse files
committed
Minor tweak
1 parent 511613e commit 6d6ad2e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/yaml.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,12 @@ Then, execute the script for validating contents:
433433
# or contents passed to STDIN
434434
$ cat path/to/file.yaml | php lint.php
435435
436-
Use the `--exclude` option to exclude one or more specific files from multiple file list:
436+
# you can also exclude one or more files from linting
437+
$ php lint.php path/to/directory --exclude=path/to/directory/foo.yaml --exclude=path/to/directory/bar.yaml
437438
438-
.. code-block:: terminal
439+
.. versionadded:: 5.4
439440

440-
$ php lint.php path/to/directory --exclude=path/to/directory/foo.yaml --exclude=path/to/directory/bar.yaml
441+
The ``--exclude`` option was introduced in Symfony 5.4.
441442

442443
The result is written to STDOUT and uses a plain text format by default.
443444
Add the ``--format`` option to get the output in JSON format:

0 commit comments

Comments
 (0)