oridb/mc

proposal: support '--' to pass CLI arguments to the program run by mbld -R

Closed this issue · 4 comments

proposal: support '--' to pass CLI arguments to the program run by mbld -R

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.

@oridb Okay. I'll go with the first option.

The pr has been merged.