I want to use the default cp on my mac to copy a folder to another destination. I want it to overwrite the target. But if the target folder exists, cp copies the source into the target instead of overwriting it.
In GNU cp, there is --no-target-directory. The argument does not exist on Mac's cp.
I would prefer not to switch to GNU's cp because I do not know if it's as fast as Mac's builtin cp (or maybe it is? I have not tested it). Performance is important here.
I also would prefer not to switch because that just seems like an overkill solution. Mac's cp work for me. There's a guarantee that it's installed on every mac.