Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Commit 1b3baf8

Browse files
committed
Small CLI help message cleanup
1 parent 0602a08 commit 1b3baf8

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

src/RescriptEditorSupport.ml

+15-7
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,26 @@ let hasOpts opts names = names |> List.exists (opts |> hasOpt)
2020

2121
let help =
2222
{|
23-
Commands for Rescript Language Server
23+
**Private CLI For rescript-vscode usage only**
2424

25-
-dump: compute definition and hover for Foo.res at line 0 and column 4:
25+
Examples:
26+
rescript-editor-support.exe dump src/MyFile.res src/MyFile2.res
27+
rescript-editor-support.exe complete src/MyFile.res 0 4 currentContent.res
28+
rescript-editor-support.exe hover src/MyFile.res 10 2
2629

27-
rescript-editor-support.exe dump src/Foo.res:0:4
30+
Options:
31+
dump: debugging. definition and hover for Foo.res and Foo2.res:
2832

29-
-complete: compute autocomplete for Foo.res at line 0 and column 4,
30-
where Foo.res is being edited and the editor content is in file current.res.
33+
rescript-editor-support.exe dump src/Foo.res src/Foo2.res
3134

32-
rescript-editor-support.exe complete src/Foo.res 0 4 current.res
35+
complete: compute autocomplete for Foo.res at line 0 and column 4,
36+
where Foo.res is being edited and the editor content is in file current.res.
3337

34-
The dump command can also omit `:line:column`, to show results for every position in the file. Several files can be specified on the command line.
38+
rescript-editor-support.exe complete src/Foo.res 0 4 current.res
39+
40+
hover: get inferred type for Foo.res at line 10 column 2:
41+
42+
rescript-editor-support.exe hover src/Foo.res 10 2
3543
|}
3644

3745
let showHelp () = prerr_endline help

0 commit comments

Comments
 (0)