Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deno executable should turn off argument processing when encountering '--' #3011

Closed
mcarifio opened this issue Sep 24, 2019 · 3 comments
Closed
Labels
bug Something isn't working correctly

Comments

@mcarifio
Copy link

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 :-).

@ry ry added the bug Something isn't working correctly label Sep 24, 2019
@bartlomieju
Copy link
Member

Fixed in #3628

@ry
Copy link
Member

ry commented Jan 15, 2020

@nayeemrmn reports this is still an issue.

@ry ry reopened this Jan 15, 2020
@nayeemrmn
Copy link
Collaborator

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.

This can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

5 participants