https://kotlinlang.org logo
#ktor
Title
# ktor
c

clayly

07/09/2022, 8:49 PM
Hi everyone! Trying to understand how to pass command-line options for array parameters (e. g.
ktor.application.modules = []
), but it fails with error like this:
Copy code
Exception in thread "main" com.typesafe.config.ConfigException$WrongType: Command-line options: tasks has type STRING rather than LIST
I have tried different formats:
Copy code
-P:ktor.application.modules=X, Y
-P:ktor.application.modules=[X, Y]
-P:ktor.application.modules=[X; Y]
But nothing seems to work.
Copy code
-P:ktor.application.modules.0=something_first
-P:ktor.application.modules.1=something_second
🤦
But it seem absent on Ktor docs...
10 Views