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 {
2222 var tcpClientPort: Int? = null
2323 @Parameter(names = [" --tcpClientHost" , " -h" ])
2424 var tcpClientHost: String = " localhost"
25+ @Parameter(names = [" --version" , " -V" ])
26+ var versionCheck: Boolean = false
2527}
2628
2729fun main (argv : Array <String >) {
2830 // Redirect java.util.logging calls (e.g. from LSP4J)
2931 LOG .connectJULFrontend()
3032
3133 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+
3240 val (inStream, outStream) = args.tcpClientPort?.let {
3341 // Launch as TCP Client
3442 LOG .connectStdioBackend()
You can’t perform that action at this time.
0 commit comments