Closed delphidabbler closed 2 months ago
How about having single --overwrite=<param>
command with 3 possible commands:
ask
- ask whether to overwrite (default)silent
- overwrite without askingerror
- stop with error if file already existsCould still have -o
as alias for --overwrite=error
and -O
as alias for --overwrite=silent
Not implementing long command names just yet, so sticking with -o
and -O
.
Suggesting two options:
-o
(lower case letter O) - Raise exception if file to be written already exists.-O
(upper case letter O) - Silently overwrite any preexisting file.