remove-on-error.d 517 B

123456789101112131415
  1. c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: remove-on-error
  4. Help: Remove output file on errors
  5. See-also: fail
  6. Category: curl
  7. Example: --remove-on-error -o output $URL
  8. Added: 7.83.0
  9. Multi: boolean
  10. ---
  11. When curl returns an error when told to save output in a local file, this
  12. option removes that saved file before exiting. This prevents curl from
  13. leaving a partial file in the case of an error during transfer.
  14. If the output is not a file, this option has no effect.