Skip to content

Correct node -h text for -r, --require option #39542

Open
@juergba

Description

@juergba

Version

v14.17.0

Platform

Microsoft Windows NT 10.0.19043.0 x64

Subsystem

No response

What steps will reproduce the bug?

node -h

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

always

What is the expected behavior?

-r, --require <module>          module to preload (option can be repeated)

What do you see instead?

-r, --require=...          module to preload (option can be repeated)

Additional information

This is just a nit. The "=" is confusing, or even wrong with -r=foo:

  • ok: --require=foo
  • ok: --require foo
  • fails: -r=foo
    => C:\Program Files\nodejs\node.exe: bad option: -r=foo
  • ok: -r foo

The command-line options docs shows no "=" sign: -r, --require module
The behavior of this option isn't consistent, also compared to the rest of Node's CLI options.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions