Open cjmalloy opened 2 months ago
Is this available? I can work on this.
+1 to getting this fixed. Still an issue in 1.1.24
:(
As a workaround, I just found out that taking code from stdin works :)
> echo "console.log(Bun.argv)" | bun run - 1 2 3
[ "/Users/svallory/.proto/tools/bun/1.1.24/bun", "/Volumes/projects/dfx/[stdin]",
"1", "2", "3"
]
What version of Bun is running?
1.1.17+bb66bba1b
What platform is your computer?
Linux 5.4.0-186-generic x86_64 x86_64
What steps can reproduce the bug?
What is the expected behavior?
Should match node and not ignore the first argument.
What do you see instead?
First argument missing.
Additional information
Similarly for
bun --print
.My workaround is to just include a placeholder arg and modify argv: