You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A leading end-of-options separator does not accept the Bend filename #2304
Ran bend -- -program.bend --sample, using -- to separate options from a file whose name begins with a dash.
From source, the equivalent is bun bend2/main.ts -- -- -program.bend --sample because the Bun launcher consumes the first separator.
What happened
Bend exits 1 and prints its usage. bend ./-program.bend -- --sample works; IO.args() gets --sample. A separator before the file should consume the next token as the file, and pass the remaining tokens to the program, rather than treating every token as a program argument without a file.
The file
Any valid file named -program.bend; the example prints IO.args().
Activity