Get the array of data to Jar file written in Kotlin

Hi,

Im new to Kotlin and I’m writing a simple project for generate QR code. If I fix the values in to variable and run the program it will generate the QRcode. I want to run this project as a JAR file and let user pass the array of data, and it will generate QRcode. Is there any tutorial I can read on this or anyone can help me with example, it would be great.

Thanks
Thameera