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
As far as I can tell, this is because the main method is invoked with allowPositional = true (Scripts.scala:109).
I believe forwarding allowPositional to ammonite.Main should allow this to be configured at least in an embedded environment. Adding a command line argument shouldn't be that much more effort.
If I'm mistaken, this may end up being an improvement for mainargs instead.
I have confirmed that allowPositional = false results in the expected behavior.
The text was updated successfully, but these errors were encountered:
Consider
MyScript.sc
:Currently I can invoke this like:
I think it's clear how the arguments are being misconstrued. What I'd like to have is:
As far as I can tell, this is because the main method is invoked with
allowPositional = true
(Scripts.scala:109
).I believe forwarding
allowPositional
toammonite.Main
should allow this to be configured at least in an embedded environment. Adding a command line argument shouldn't be that much more effort.If I'm mistaken, this may end up being an improvement formainargs
instead.I have confirmed that
allowPositional = false
results in the expected behavior.The text was updated successfully, but these errors were encountered: