tool: support fractions for --limit-rate and --max-filesize

Allow 2.5k or 3.7M etc. Add mention in documentation.

Verify in test case 1623.

Closes #20266
This commit is contained in:
Daniel Stenberg 2026-01-17 23:11:07 +01:00
parent 6aaac9dd38
commit 6d6899c2f0
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 250 additions and 48 deletions

View file

@ -375,6 +375,7 @@ ParameterError getparameter(const char *flag, const char *nextarg,
ParameterError parse_cert_parameter(const char *cert_parameter,
char **certname,
char **passphrase);
UNITTEST ParameterError GetSizeParameter(const char *arg, curl_off_t *out);
#endif
ParameterError parse_args(int argc, argv_item_t argv[]);