#!/usr/bin/env node /** * check-script-flags-reachable.mjs — a flag a package.json script advertises must actually reach it. * * THE DEFECT THIS CATCHES, proven by experiment rather than reasoned about: * * "_t1": "node /tmp/argtest.mjs" $ bun run _t1 --self-test * ARGV: ["--self-test"] * "_t2": "node /tmp/argtest.mjs # a trailing comment" $ bun run _t2 --self-test * ARGV: [] * * This repo documents its scripts with inline `#` comments — a genuinely good habit, and 36 scripts * use it. But `bun run