Skip to content

node --v8-options says that you can use a space between the flag name and value, but it's not true #54145

Open
@nicolo-ribaudo

Description

@nicolo-ribaudo

Version

v22.5.1

Platform

Linux nic-desktop 6.9.3-76060903-generic #202405300957~1718348209~22.04~7817b67 SMP PREEMPT_DYNAMIC Mon J x86_64 x86_64 x86_64 GNU/Linux

Subsystem

cli

What steps will reproduce the bug?

node --v8-options prints:

The following syntax for options is accepted (both '-' and '--' are ok):
  --flag        (bool flags only)
  --no-flag     (bool flags only)
  --flag=value  (non-bool flags only, no spaces around '=')
  --flag value  (non-bool flags only)
  --            (captures all remaining args in JavaScript)

How often does it reproduce? Is there a required condition?

/

What is the expected behavior? Why is that the expected behavior?

The help output should match the implementation

What do you see instead?

It's not true that I can use --flag value. If I try running node --arm-arch armv8 foo.js it parses armv8 as the script name, rather than as if it was node --arm-arch=armv8 foo.js

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliIssues and PRs related to the Node.js command line interface.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions