curl: --continue-at is mutually exclusive with --range

Allowing both just creates a transfer with behaviors no user can
properly anticipate so better just deny the combo.

Fixes #15646
Reported-by: Harry Sintonen
Closes #15666
This commit is contained in:
Daniel Stenberg 2024-12-02 11:53:54 +01:00
parent fa1a8e0215
commit fcb59534e3
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 14 additions and 0 deletions

View file

@ -24,3 +24,6 @@ the FTP server command SIZE is not used by curl.
Use "-C -" to instruct curl to automatically find out where/how to resume the
transfer. It then uses the given output/input files to figure that out.
This command line option is mutually exclusive with --range: you can only use
one of them for a single transfer.

View file

@ -55,3 +55,6 @@ attempt to get a range, curl instead gets the whole document.
FTP and SFTP range downloads only support the simple 'start-stop' syntax
(optionally with one of the numbers omitted). FTP use depends on the extended
FTP command SIZE.
This command line option is mutually exclusive with --continue-at: you can only
use one of them for a single transfer.