mirror of
https://github.com/curl/curl.git
synced 2026-08-03 02:00:28 +03:00
- Add --output, --remove-on-error, --output-dir and --created-dirs to the output help category - Add --hostpubmd5, --hostpubsha256, --insecure (-k), and --pubkey to the ssh help category Closes #14076
21 lines
553 B
Markdown
21 lines
553 B
Markdown
---
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
SPDX-License-Identifier: curl
|
|
Long: remove-on-error
|
|
Help: Remove output file on errors
|
|
Category: curl output
|
|
Added: 7.83.0
|
|
Multi: boolean
|
|
See-also:
|
|
- fail
|
|
Example:
|
|
- --remove-on-error -o output $URL
|
|
---
|
|
|
|
# `--remove-on-error`
|
|
|
|
Remove output file if an error occurs. If curl returns an error when told to
|
|
save output in a local file. This prevents curl from leaving a partial file in
|
|
the case of an error during transfer.
|
|
|
|
If the output is not a regular file, this option has no effect.
|