Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: warn on invalid single-hyphen cli flags #8076

Merged
merged 1 commit into from
Jan 30, 2025
Merged

Conversation

wraithgar
Copy link
Member

@wraithgar wraithgar commented Jan 30, 2025

Single hyphen cli flags traditionally are single-character only, so they can be combined. npm already supports combining single-hyphen flags together, so it eventually needs stop supporting multi-character ones.

Also re-added -ws to undocumented shorthands, it was accidentally removed from the main config and not re-added to the internal one.

Finally, warnings on a few env configs that npm tosses around were suppressed for now.

Demonstration of the cli warning on some invalid single hyphen flags

Single hyphen cli flags traditionally are single-character only, so they can be combined.  npm already supports combining single-hyphen flags together, so it eventually needs stop supporting multi-character ones.

Also re-added -ws to undocumented shorthands, it was accidentally removed from the main config and not re-added to the internal one.
@wraithgar wraithgar requested a review from a team as a code owner January 30, 2025 17:52
@wraithgar wraithgar merged commit 593c849 into latest Jan 30, 2025
34 checks passed
@wraithgar wraithgar deleted the gar/invalid-config branch January 30, 2025 19:16
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