2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2022-02-24 17:30:10 +08:00
|
|
|
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
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: boolean
|
2022-02-24 17:30:10 +08:00
|
|
|
---
|
|
|
|
When curl returns an error when told to save output in a local file, this
|
2022-03-11 05:56:11 +08:00
|
|
|
option removes that saved file before exiting. This prevents curl from
|
2022-02-24 17:30:10 +08:00
|
|
|
leaving a partial file in the case of an error during transfer.
|
|
|
|
|
|
|
|
If the output is not a file, this option has no effect.
|