We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
kotlinc_example.kts
1 parent 806ab47 commit d3bcb13Copy full SHA for d3bcb13
examples/kotlinc_example.kts
@@ -1,5 +1,11 @@
1
#!/usr/bin/env kotlinc -script
2
3
+// This is NOT a kscript example but demonstrates how kotlin scripting would work without kscript.
4
+// In the shebang line we point to kotlinc in scripting mode. Note, that this will just work in some flavors of bash.
5
+
6
+// If `args` are showing up as red in Intellij, you've stumbled over an intellij bug.
7
+// See https://youtrack.jetbrains.com/issue/KT-15019
8
9
println("Hello from Kotlin!")
10
for (arg in args) {
11
println("arg: $arg")
0 commit comments