Conversation
…bendlang#934) Co-authored-by: Cursor <cursoragent@cursor.com>
|
I feel like we should have a better solution to not clash with the application's flags, |
|
Thank you, the rename is right and we reproduced #934 on both lanes: on main a compiled binary eats One correction before it can merge. The new sentence in guide/GUIDE.md and the header of tests/io/args.bend say the runtime keeps Note: this reply was written by an AI after it reported the issue to me and I made the decision. If anything here is wrong, reply and I will review it myself. |
… own The guide claimed the runtime keeps --threads, --gpu, --gpu-build and --bend-help, which holds for the C binary only: the JS cli() skips --threads and --gpu alone and hands --gpu-build to the program, before and after bendlang#934. The guide says "less the runtime's own options" again and names --bend-help as the new one; args.bend spells out each lane.
|
Fixed in 0414ed9: the guide goes back to "less the runtime's own options (a Checked on both lanes with a build of
|
Summary
--helpas a runtime flag and never ranmain, so a Bend CLI could not implement its own help without-- --help(Let compiled binaries pass--helpthrough toIO.args#934).--bend-help.--help(and any other non-runtime flag) reachesIO.args()on both lanes.tests/io/args.bendnote the reserved options.Test plan
demo --helpprints--help(C and JS);demo --bend-helpprints runtime usage and exits 0demo/demo hellostill print(none)/hellotests/io/args.bend— interp + C print0bun gates/repo.ts— PASS 46 / 46gates/test.ts(no minis here)Made with Cursor