Skip to content

Commit

Permalink
curl: use help formatted message to inform parameters bad usage
Browse files Browse the repository at this point in the history
  • Loading branch information
c-zx committed Sep 6, 2021
1 parent 1081a15 commit ae6d426
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tool_getparam.c
Expand Up @@ -2385,12 +2385,13 @@ ParameterError parse_args(struct GlobalConfig *global, int argc,
}

if(config->content_disposition && config->show_headers) {
warnf(global, "--include and --remote-header-name cannot be combined.\n");
helpf(global->errors, "--include and --remote-header-name "
"cannot be combined.\n");
return PARAM_BAD_USE;
}
if(config->content_disposition && config->resume_from_current) {
warnf(global, "--continue-at - and --remote-header-name "
"cannot be combined.\n");
helpf(global->errors, "--continue-at - and --remote-header-name "
"cannot be combined.\n");
return PARAM_BAD_USE;
}

Expand Down

0 comments on commit ae6d426

Please sign in to comment.