proposal: support '--' to pass CLI arguments to the program run by mbld -R
Closed this issue · 4 comments
typeless commented
proposal: support '--' to pass CLI arguments to the program run by mbld -R
typeless commented
I am trying to implement it.
oridb commented
Proposal sounds good -- there are two ways I can see to handle it. Right now, the -R
option actually takes a list of files that compose a program. We can simply change that to one file, and make that into -R
's option list. This means that you don't even need --
, you can do mbld -R foo.myr arg list
.
The other option will be finding some way to feed back the position of '--' in the arg list from the argument parser. Right now that information ls lost.
Either option is fine by me; I don't think I've ever passed multiple files to mbld -R
.
typeless commented
The pr has been merged.