diff --git a/docs/guides/cli.md b/docs/guides/cli.md index 116e4e4ee..1769c5040 100644 --- a/docs/guides/cli.md +++ b/docs/guides/cli.md @@ -46,7 +46,7 @@ Here you can build a [custom ruleset](../getting-started/rulesets.md), or extend Spectral has a few different error severities: `error`, `warn`, `info` and `hint`, and they are in "order" from highest to lowest. By default, all results will be shown regardless of severity, but since v5.0, only the presence of warnings or errors will cause a failure status code of 1. -The default behavior is can be modified with the `--fail-severity=` option. Setting fail severity to `--fail-severity=info` would return a failure status code of 1 for any info results or higher. Using `--fail-severity=error` will only cause a failure status code for errors. +The default behavior can be modified with the `--fail-severity=` option. Setting fail severity to `--fail-severity=info` would return a failure status code of 1 for any info results or higher. Using `--fail-severity=error` will only cause a failure status code for errors. Changing the fail severity will not effect output. To change what results Spectral CLI prints to the screen, add the `--display-only-failures` switch (or just `-D` for short). This will strip out any results which are below the specified fail severity.