-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Description
Version: Deno 2.5.3
CC: @najumancheril, @bartlomieju, @dsherret
Related: #23071
Hi folks. I'm trying to run a REPL from a script with least steps and moving parts. The distinction made in #23071 (to only get the export
s) is not decisive to my use case, so --eval-file
is fine too. However, the --eval-file
flag as merged in #14247 doesn't seem to work in hashbang context:
#!/usr/bin/env -S deno repl --allow-read --eval-file
console.log('hello from data.ts')
error: equal sign is needed when assigning values to '--eval-file=<eval-file>...'
Were it not for the equal sign requirement, this would parse as deno repl --allow-read --eval-file data.ts
and drop me right where I need to be. The equal sign is explained to be needed for passing multiple values (--eval-file=1.ts,2.ts
).
Do you guys see a way to make this work with multiple flag instances (--eval-file 1.ts --eval-file 2.ts
), making the equal sign optional, without breaking backwards compatibility?