Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 2833598

Browse files
update script version of format.js in README.md and include option serr
1 parent 4cf6b70 commit 2833598

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

sqlcl/README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ We recommend you download, clone, or fork this repository when you plan to use [
2828
However, [`format.js`](format.js) also works as a standalone script. Here's the usage:
2929

3030
```
31-
Trivadis PL/SQL & SQL Formatter (format.js), version 22.2.0
31+
Trivadis PL/SQL & SQL Formatter (format.js), version 22.2.1
3232
3333
usage: script format.js <rootPath> [options]
3434
@@ -48,6 +48,11 @@ options:
4848
ignore=<file> path to the file containing file patterns to ignore. Patterns are defined
4949
per line. Each line represent a glob pattern. Empty lines and lines starting
5050
with a hash sign (#) are ignored.
51+
serr=<scope> scope of syntax errors to be reported. By default all errors are reported.
52+
serr=none reports no syntax errors
53+
serr=all reports all syntax errors
54+
serr=ext reports syntax errors for files defined with ext option
55+
serr=mext reports syntax errors for files defined with mext option
5156
--help, -h, print this help screen and exit
5257
--version, -v print version and exit
5358
--register, -r register SQLcl command tvdformat and exit
@@ -64,7 +69,7 @@ script (...)/plsql-formatter-settings/sqlcl/format.js --register
6469
Afterwards you can type `tvdformat` to get this usage help:
6570

6671
```
67-
Trivadis PL/SQL & SQL Formatter (tvdformat), version 22.2.0
72+
Trivadis PL/SQL & SQL Formatter (tvdformat), version 22.2.1
6873
6974
usage: tvdformat <rootPath> [options]
7075
@@ -84,6 +89,11 @@ options:
8489
ignore=<file> path to the file containing file patterns to ignore. Patterns are defined
8590
per line. Each line represent a glob pattern. Empty lines and lines starting
8691
with a hash sign (#) are ignored.
92+
serr=<scope> scope of syntax errors to be reported. By default all errors are reported.
93+
serr=none reports no syntax errors
94+
serr=all reports all syntax errors
95+
serr=ext reports syntax errors for files defined with ext option
96+
serr=mext reports syntax errors for files defined with mext option
8797
--help, -h, print this help screen and exit
8898
--version, -v print version and exit
8999
```

0 commit comments

Comments
 (0)