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
Generally a linux executable will turn off arg processing when it encounters two dashes, e.g. deno -A -- one two three should run the repl and have Deno.args be ["one", "two", "three"].
In deno 18.4 installed via cargo:
$ deno --version
deno: 0.18.4
v8: 7.9.8
typescript: 3.5.1
$ deno -A -- one two three
Cannot resolve module "file:///home/mcarifio/one"
deno --help currently doesn't tell me to expect -- to turn off arg processing, so it works as described. @ry asked me to file this as an issue; doing as instructed :-).
The text was updated successfully, but these errors were encountered:
Looking more into this, it's actually conventional behaviour. The meaning of -- is that everything to the right is parsed as a positional argument -- not that everything to the right is parsed as a script argument which was expected here. Node works the same way.
Generally a linux executable will turn off arg processing when it encounters two dashes, e.g.
deno -A -- one two three
should run the repl and haveDeno.args
be["one", "two", "three"]
.In deno 18.4 installed via cargo:
$ deno --version deno: 0.18.4 v8: 7.9.8 typescript: 3.5.1 $ deno -A -- one two three Cannot resolve module "file:///home/mcarifio/one"
deno --help
currently doesn't tell me to expect -- to turn off arg processing, so it works as described. @ry asked me to file this as an issue; doing as instructed :-).The text was updated successfully, but these errors were encountered: