Args.tool.lead: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/share/args.bend as Args Lines 96-104 of ezx@1.11.0.0/src/share/args.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/share/args.bend&start_line=96&end_line=104 import Base # the words after `tool run` with a leading `--entry ` taken off. The # flag comes before the target, as uvx takes its own options before the # command, so every word after the target is the program's. def tool.lead(xs: List<&2, String>) -> List<&2, String>: match xs: case Nil{}: Nil{} case Con{+h, +t}: Bool.pick(List<&2, String>, String.eq(h, "--entry"), rest(t), h <> t) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/args.bend&name=rest