### Version v22.5.1 (and `main`) ### Platform ```text Linux ... 6.8.11-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.8.11-1kali2 (2024-05-30) x86_64 GNU/Linux ``` ### Subsystem dotenv ### What steps will reproduce the bug? https://github.com/nodejs/node/blob/54119757a39a9f51cc58a936d74f001177b247d7/src/node_dotenv.cc#L18 The above linked code snippets incorrectly matches any argument beginning with `--env-file`. ### How often does it reproduce? Is there a required condition? Always ### What is the expected behavior? Why is that the expected behavior? ```console $ node --env-file-ABCD env.file node: bad option: --env-file-ABCD ``` ### What do you see instead? ```console $ node --env-file-ABCD env.file node: env.file: not found ``` ### Additional information I have a patch for this, see https://github.com/nodejs/node/pull/54237#discussion_r1707937883. I figured I'd open this issue for tracking the bug.
Activity