mirror of
https://github.com/curl/curl.git
synced 2026-07-24 14:57:17 +03:00
curl: --continue-at is mutually exclusive with --remove-on-error
Test 482 verifies Fixes #15645 Reported-by: Harry Sintonen Closes #15668
This commit is contained in:
parent
ffbcde0022
commit
0169b80e5c
5 changed files with 56 additions and 2 deletions
|
|
@ -1849,6 +1849,11 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
errorf(global, "--continue-at is mutually exclusive with --range");
|
||||
return PARAM_BAD_USE;
|
||||
}
|
||||
if(config->rm_partial) {
|
||||
errorf(config->global,
|
||||
"--continue-at is mutually exclusive with --remove-on-error");
|
||||
return PARAM_BAD_USE;
|
||||
}
|
||||
if(config->file_clobber_mode == CLOBBER_NEVER) {
|
||||
errorf(config->global,
|
||||
"--continue-at is mutually exclusive with --no-clobber");
|
||||
|
|
@ -2162,6 +2167,11 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
}
|
||||
break;
|
||||
case C_REMOVE_ON_ERROR: /* --remove-on-error */
|
||||
if(config->use_resume && toggle) {
|
||||
errorf(config->global,
|
||||
"--continue-at is mutually exclusive with --remove-on-error");
|
||||
return PARAM_BAD_USE;
|
||||
}
|
||||
config->rm_partial = toggle;
|
||||
break;
|
||||
case C_FAIL: /* --fail */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue