mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
0a142663a1
Reported-by: Colin Leroy Bug: https://github.com/curl/curl/pull/8503#pullrequestreview-906520081
13 lines
413 B
Makefile
13 lines
413 B
Makefile
Long: remove-on-error
|
|
Help: Remove output file on errors
|
|
See-also: fail
|
|
Category: curl
|
|
Example: --remove-on-error -o output $URL
|
|
Added: 7.83.0
|
|
---
|
|
When curl returns an error when told to save output in a local file, this
|
|
option removes that saved file before exiting. This prevents curl from
|
|
leaving a partial file in the case of an error during transfer.
|
|
|
|
If the output is not a file, this option has no effect.
|