mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-05 20:41:35 -07:00
Document --color in the man page.
This commit is contained in:
parent
23496e93b0
commit
d1df3713ca
1 changed files with 8 additions and 2 deletions
|
@ -16,7 +16,7 @@ errors and pitfalls where the shell just gives a cryptic error message or
|
|||
strange behavior, but it also reports on a few more advanced issues where
|
||||
corner cases can cause delayed failures.
|
||||
|
||||
ShellCheck gives shell specific advice. Consider the line:
|
||||
ShellCheck gives shell specific advice. Consider this line:
|
||||
|
||||
(( area = 3.14*r*r ))
|
||||
|
||||
|
@ -32,6 +32,12 @@ not warn at all, as `ksh` supports decimals in arithmetic contexts.
|
|||
|
||||
# OPTIONS
|
||||
|
||||
**-C**\ [*WHEN*],\ **--color**[=*WHEN*]
|
||||
|
||||
: For TTY outut, enable colors *always*, *never* or *auto*. The default
|
||||
is *auto*. **--color** without an argument is equivalent to
|
||||
**--color=always**.
|
||||
|
||||
**-e**\ *CODE1*[,*CODE2*...],\ **--exclude=***CODE1*[,*CODE2*...]
|
||||
|
||||
: Explicitly exclude the specified codes from the report. Subsequent **-e**
|
||||
|
@ -54,7 +60,7 @@ not warn at all, as `ksh` supports decimals in arithmetic contexts.
|
|||
|
||||
: Print version information and exit.
|
||||
|
||||
**-x**,\ **-external-sources**
|
||||
**-x**,\ **--external-sources**
|
||||
|
||||
: Follow 'source' statements even when the file is not specified as input.
|
||||
By default, `shellcheck` will only follow files specified on the command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue