This repository was archived by the owner on Apr 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Throw error when conflicting type params are passed #56
Comments
Examples: node --experimental-modules --type=commonjs --type=module file.js
node --experimental-modules --type=commonjs -m file.js |
getting rid of aside from that, node in general just allows duplicated flags.
this is particularly important because it means you can override things from NODE_OPTIONS |
@devsnek allowing duplicate flags isn’t necessary to allow overriding; but it may be that node’s options parser lacks the capability to properly distinguish them. |
@ljharb my point is more that this isn't an issue specific to |
cc @addaleax |
Resolved in #45 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Per #55 (comment)
An error should be thrown if:
--type
is passed--type
value is passed along with any--type
value--type
value are passedThe text was updated successfully, but these errors were encountered: