-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Specifying a flag twice throws an error #5369
Copy link
Copy link
Closed
Labels
area:cliIssues with Prettier's Command Line InterfaceIssues with Prettier's Command Line Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
Milestone
Metadata
Metadata
Assignees
Labels
area:cliIssues with Prettier's Command Line InterfaceIssues with Prettier's Command Line Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
Environments:
Steps to reproduce:
Expected behavior:
Actual behavior:
I happen to find myself in a situation where I need to override a CLI flag with another one, which appended to the invocation later. I cannot just remove the first flag, unfortunately.
What I would expect would be for Prettier to use the last value given for a flag, instead of trying to combine them into an array? (At least, I think that's what
minimistis doing; I'm not sure where the error about "null" is coming from.)