Skip to content

Some CLI options documented in the CLI docs are missing in node manpage #58895

Description

@dario-piotrowicz

Version

24

Platform

All

Subsystem

doc

What steps will reproduce the bug?

Run man node and view the OPTIONS section

Compare it to https://nodejs.org/api/cli.html#options (permalink)

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

Always

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

Whatever is documented in the CLI documentation should also be documented in the node manpage

What do you see instead?

The following options are missing:

  • build-snapshot
  • build-snapshot-config
  • disable-sigusr1
  • disable-warning
  • dns-result-order
  • enable-network-family-autoselection
  • env-file-if-exists
  • env-file
  • experimental-network-inspection
  • experimental-print-required-tla
  • experimental-require-module
  • experimental-sea-config
  • experimental-worker-inspection
  • expose-gc
  • force-node-api-uncaught-exceptions-policy
  • import
  • network-family-autoselection-attempt-timeout
  • no-async-context-frame
  • no-experimental-detect-module
  • no-experimental-global-navigator
  • no-experimental-require-module
  • no-network-family-autoselection
  • openssl-legacy-provider
  • openssl-shared-config
  • report-dir
  • report-directory
  • report-exclude-env
  • report-exclude-network
  • run
  • snapshot-blob
  • trace-env
  • trace-env-js-stack
  • trace-env-native-stack
  • trace-require-module
  • use-system-ca
  • watch-preserve-output

Additional information

They need to be added in the appropriate node.1 section.

Afterwords the following code, since no longer necessary, needs to be removed:

// TODO(dario-piotrowicz): add the missing flags to the node.1 and remove this set
// (refs: https://github.com/nodejs/node/issues/58895)
const knownFlagsMissingFromManPage = new Set([
'build-snapshot',
'build-snapshot-config',
'disable-sigusr1',
'disable-warning',
'dns-result-order',
'enable-network-family-autoselection',
'env-file-if-exists',
'env-file',
'experimental-network-inspection',
'experimental-print-required-tla',
'experimental-require-module',
'experimental-sea-config',
'experimental-worker-inspection',
'expose-gc',
'force-node-api-uncaught-exceptions-policy',
'import',
'network-family-autoselection-attempt-timeout',
'no-async-context-frame',
'no-experimental-detect-module',
'no-experimental-global-navigator',
'no-experimental-require-module',
'no-network-family-autoselection',
'openssl-legacy-provider',
'openssl-shared-config',
'report-dir',
'report-directory',
'report-exclude-env',
'report-exclude-network',
'run',
'snapshot-blob',
'trace-env',
'trace-env-js-stack',
'trace-env-native-stack',
'trace-require-module',
'use-system-ca',
'watch-preserve-output',
]);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions