File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
server/src/main/kotlin/org/javacs/kt Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,21 @@ class Args {
22
22
var tcpClientPort: Int? = null
23
23
@Parameter(names = [" --tcpClientHost" , " -h" ])
24
24
var tcpClientHost: String = " localhost"
25
+ @Parameter(names = [" --version" , " -V" ])
26
+ var versionCheck: Boolean = false
25
27
}
26
28
27
29
fun main (argv : Array <String >) {
28
30
// Redirect java.util.logging calls (e.g. from LSP4J)
29
31
LOG .connectJULFrontend()
30
32
31
33
val args = Args ().also { JCommander .newBuilder().addObject(it).build().parse(* argv) }
34
+
35
+ if (args.versionCheck) {
36
+ println (System .getProperty(" kotlinLanguageServer.version" ))
37
+ return
38
+ }
39
+
32
40
val (inStream, outStream) = args.tcpClientPort?.let {
33
41
// Launch as TCP Client
34
42
LOG .connectStdioBackend()
You can’t perform that action at this time.
0 commit comments