You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env kscript
println("arugment test")
for (arg in args) {
println("arg: $arg")
}
to make sure that arguments are correctly forward to the script, which seems the case.
So if stream processing fails if the option is provided, I'd suspect rather some issue with your script logic.
Could you simplify/share temp2.kts to help me reproducing the problem?
Activity
holgerbrandl commentedon Jan 17, 2018
I've tested
test_script.kts - -graphwithto make sure that arguments are correctly forward to the script, which seems the case.
So if stream processing fails if the option is provided, I'd suspect rather some issue with your script logic.
Could you simplify/share temp2.kts to help me reproducing the problem?
ilanpillemer commentedon Jan 17, 2018
The issue is happening somehow in the preamble bash file. The kts file is piped into a preamble bash file.
ilanpillemer commentedon Jan 17, 2018
hj-lee commentedon Feb 6, 2018
It looks like kscript treats "-" as one of kscript options, not as the script.
Below code in Kscript.kt seems to be the culprit.
Changing it to something like below would fix the issue.
ilanpillemer commentedon Feb 6, 2018
I will give that a try this week and see if it works. And if it does put together a pull request