Skip to content

Conversation

@SuperHeavyBallet
Copy link

The documentation for command-line flags uses “foo” and “bar” as placeholders without clarifying that they are generic examples of a key and a value.

New readers unfamiliar with this convention may interpret them as literal parameters. Suggest adding a short note as given explaining that “foo/bar” are placeholders for any config key/value.

This branch includes a full rewrite.

This change was originally suggested in npm/documentation#1760 — applying it here since the CLI docs are the true source

@SuperHeavyBallet SuperHeavyBallet requested a review from a team as a code owner October 29, 2025 18:28
@wraithgar wraithgar changed the title style: format edited files with Prettier docs: more detail for command line flags Oct 30, 2025

### See also

* [npm config](/commands/npm-config)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the other files in docs use * so let's keep it consistent here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants