-
Notifications
You must be signed in to change notification settings - Fork 745
Open
Description
Bug Report
Current Behavior
The changesets CLI silently ignores unknown flags and proceeds to execute commands, which can lead to unintended actions.
Expected Behavior
The CLI should either:
- Show an error message for unknown flags
- Display help information when invalid flags are used
- At minimum, warn about unrecognized flags
Steps to Reproduce
- Run changeset publish --help (non-existent flag for this subcommand)
- Observe that the command execute changeset publish normally instead of erroring
Example Output
$ changeset publish --help
# Proceeds to publish instead of showing helpImpact
This behavior is dangerous because:
- Users expect --help to show documentation
- Users expect unknown flags to not be silently ignored
- Silent flag ignoring can lead to accidental publishes
Environment
- @changesets/cli version: 2.29.8
Suggested Fix
Add flag validation that errors on unknown flags, similar to how most CLI tools handle this scenario.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels