add reference to -latest command line option --source-path

Virgil
2019-05-09 02:20:56 +10:00
parent d5b9529ecd
commit cdc5988e45

@@ -22,3 +22,18 @@ Use a [[Directive]] to point shellcheck to a fixed location it can read instead.
### Exceptions: ### Exceptions:
If you don't care that ShellCheck is unable to account for the file, specify `# shellcheck source=/dev/null`. If you don't care that ShellCheck is unable to account for the file, specify `# shellcheck source=/dev/null`.
***
### 🚧 In [`shellcheck-latest`](https://shellcheck.storage.googleapis.com/index.html):
⚠️ this section references [functionality](https://github.com/koalaman/shellcheck/commit/301705edea829c5153c43bf52215d09b5e00d182) not yet in the **`stable`** release.
#### shellcheck -P *SOURCEPATH*, --source-path=*SOURCEPATH*
`shellcheck -P dir1:dir2/libs`
Specify paths to search for sourced files, separated by `:` on Unix and `;` on Windows. Absolute paths will also be rooted in these.
The special path ***`SCRIPTDIR`*** can be used to specify searching the currently checked script's directory, as in **`-P SCRIPTDIR`** or **`-P SCRIPTDIR/../libs`**. Subsequent `-P` flags accumulate and take precedence.