Skip to content

src: add -f alias for --experimental-config-file#62931

Draft
marco-ippolito wants to merge 1 commit intonodejs:mainfrom
marco-ippolito:drop-default-and-alias
Draft

src: add -f alias for --experimental-config-file#62931
marco-ippolito wants to merge 1 commit intonodejs:mainfrom
marco-ippolito:drop-default-and-alias

Conversation

@marco-ippolito
Copy link
Copy Markdown
Member

No description provided.

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/config
  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. config Issues or PRs related to the config subsystem needs-ci PRs that need a full CI run. labels Apr 24, 2026
@JakobJingleheimer
Copy link
Copy Markdown
Member

JakobJingleheimer commented Apr 24, 2026

Hmm. I think -f is not intuitive (there are many more instances of -f meaning something else).

@joyeecheung
Copy link
Copy Markdown
Member

Personally I'd think -f is short for --format which seems common in other CLI tools

@marco-ippolito
Copy link
Copy Markdown
Member Author

marco-ippolito commented Apr 25, 2026

Well, I took Docker as inspiration that uses -f to specificy the location of the Dockerfile. I'm open to suggestion for a single char alias

@bakkot
Copy link
Copy Markdown
Contributor

bakkot commented Apr 25, 2026

Seems weird to have a short alias for an experimental flag. If people are writing node -f they'll have no reason to think that they're doing something experimental.

@marco-ippolito
Copy link
Copy Markdown
Member Author

It emits an experimental warning

@GeoffreyBooth
Copy link
Copy Markdown
Member

I don't think we should have a short flag for an experimental long flag.

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

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. config Issues or PRs related to the config subsystem needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants