mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:13:31 +03:00
curl: add --remove-on-error
If a transfer returns an error, using this option makes curl remove the leftover downloded (partial) local file before exiting. Added test 376 to verify Closes #8503
This commit is contained in:
parent
7b0fd39db2
commit
08a96c6e4e
9 changed files with 93 additions and 2 deletions
|
|
@ -574,6 +574,9 @@ const struct helptxt helptext[] = {
|
|||
{"-R, --remote-time",
|
||||
"Set the remote file's time on the local output",
|
||||
CURLHELP_OUTPUT},
|
||||
{" --remove-on-error",
|
||||
"Remove output file on errors",
|
||||
CURLHELP_CURL},
|
||||
{"-X, --request <method>",
|
||||
"Specify request method to use",
|
||||
CURLHELP_CONNECTION},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue