-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
feat: add --no-clobber
option to CLI
#3025
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. It would be nice to add a test for this one too 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the option to --no-clobber
to be consistent with other commands. https://man7.org/linux/man-pages/man1/cp.1.html
--noclobber
option to CLI--no-clobber
option to CLI
# [9.1.0](v9.0.3...v9.1.0) (2023-10-05) ### Features * add `--no-clobber` option to CLI ([#3025](#3025)) ([b8adee7](b8adee7))
Marked version: c9ffa64
Markdown flavor: n/a
Description
If the
--no-clobber
/-n
option is set, it throws an error if the output file already exists.Contributor
Committer
In most cases, this should be a different person than the contributor.