I'll quick ask in case someone's got this top of m...
# javascript
r
I'll quick ask in case someone's got this top of mind: has anybody gotten Kotlin JS to accept "main" arguments in its script? Like, use the
suspend fun main(args: Array<String>)
function and generate something that can be run with arguments via node or bun.sh or whatnot
due to sourcesets et all, its painful to google 😅
a
Oh, so, as far as I know, right now it's possible to provide main arguments only as a compiler argument (during the compilation of Kotlin code). But it would be great if you will create an YouTrack ticket and I will try to implement it.
👍 1
r
https://youtrack.jetbrains.com/issue/KT-61925/Kotlin-JS-main-arguments-are-not-forwarded I'm sure this needs some cleanup, but hopefully the idea gets across
I've been converting a CLI program to JS and ran into this roadblock 🙂