Skip to content

Commit c74af0a

Browse files
committed
add help to cli
1 parent 9039a04 commit c74af0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

analysis/src/Cli.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ API examples:
1010
./rescript-editor-analysis.exe hover src/MyFile.res 10 2
1111
./rescript-editor-analysis.exe references src/MyFile.res 10 2
1212
./rescript-editor-analysis.exe rename src/MyFile.res 10 2 foo
13+
./rescript-editor-analysis.exe diagnosticSyntax src/MyFile.res
1314

1415
Dev-time examples:
1516
./rescript-editor-analysis.exe dump src/MyFile.res src/MyFile2.res
@@ -60,6 +61,10 @@ Options:
6061

6162
./rescript-editor-analysis.exe format src/MyFile.res
6263

64+
diagnosticSyntax: print to stdout diagnostic for syntax
65+
66+
./rescript-editor-analysis.exe diagnosticSyntax src/MyFile.res
67+
6368
test: run tests specified by special comments in file src/MyFile.res
6469

6570
./rescript-editor-analysis.exe test src/src/MyFile.res

0 commit comments

Comments
 (0)