From 9b0fe51e590b923ec30ac48520c94757783d9538 Mon Sep 17 00:00:00 2001 From: Christin Gruber Date: Thu, 14 Jan 2021 12:50:53 +0100 Subject: [PATCH] Add the docs for the new --exclude option --- components/yaml.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/yaml.rst b/components/yaml.rst index 29b8114ff53..c902ee66ddf 100644 --- a/components/yaml.rst +++ b/components/yaml.rst @@ -433,6 +433,12 @@ Then, execute the script for validating contents: # or contents passed to STDIN $ cat path/to/file.yaml | php lint.php +Use the `--exclude` option to exclude one or more specific files from multiple file list: + +.. code-block:: terminal + + $ php lint.php path/to/directory --exclude=path/to/directory/foo.yaml --exclude=path/to/directory/bar.yaml + The result is written to STDOUT and uses a plain text format by default. Add the ``--format`` option to get the output in JSON format: