Paul Woitaschek
05/29/2020, 1:54 PM#!/usr/bin/env kotlin . This works fine but when I want to call it with arguments I always have to put a -- first because else the commands are passed to kotlin and not to the script. I.e.
./my_script.main.kts -- --my-flag
Is there a way to define this so I dont have to call -- first?mbonnin
05/30/2020, 9:55 AMmbonnin
05/30/2020, 9:56 AM#!/usr/bin/env kotlinc -script --mbonnin
05/30/2020, 9:56 AM