Skip to content

Commit

Permalink
Update docs/guides/cli.md
Browse files Browse the repository at this point in the history
Co-Authored-By: Jakub Rożek <[email protected]>
  • Loading branch information
Phil Sturgeon and P0lip authored Oct 24, 2019
1 parent dd6e362 commit 650f5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 650f5e6

Please sign in to comment.