def tool.flagged
import ezx@1.11.0.0/src/share/args.bend as Argsimport Base
117# `tool run` with its `--entry <file>` and target, when it has the flag
118def tool.flagged(+file: String, +target: String) -> List<&2, String>:
119 Bool.pick(List<&2, String>, String.is_empty(target), ["tool", "run", "--entry", file],
120 ["tool", "run", "--entry", file, target])