params_as_map.src
globals.args = {}
globals.skip = false
for v in params
if globals.skip != 0 then
globals.args[globals.skip] = v
globals.skip = 0
else if v.indexOf("+") == 0 then
o = v.remove("+")
globals.skip = o
else if v.indexOf("-") == 0 then
o = v.remove("-")
globals.args[o] = true
end if
end for
script.md
program +hello world -debug
args["hello"] = "world"
args["debug"] = 1
program +hello world -debug args["hello"] = "world" args["debug"] = 1