def undash
import ezx@1.11.0.0/src/share/args.bend as Argsimport Base
88# a leading `--` is the separator, not a word the program was given
89def undash(xs: List<&2, String>) -> List<&2, String>:
90 match xs:
91 case Nil{}:
92 Nil{}
93 case Con{+h, +t}:
94 Bool.pick(List<&2, String>, String.eq(h, "--"), t, h <> t)