summaryrefslogtreecommitdiff
path: root/src/tool_getparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r--src/tool_getparam.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 56fc35cf5..1e1827fc1 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -2384,17 +2384,11 @@ ParameterError parse_args(struct GlobalConfig *global, int argc,
curlx_unicodefree(orig_opt);
}
- if(config->content_disposition) {
- if(config->show_headers) {
- helpf(global->errors, "--include and --remote-header-name "
- "cannot be combined.\n");
- return PARAM_BAD_USE;
- }
- if(config->resume_from_current) {
- helpf(global->errors, "--continue-at - and --remote-header-name "
- "cannot be combined.\n");
- return PARAM_BAD_USE;
- }
+ if(!result && config->content_disposition) {
+ if(config->show_headers)
+ result = PARAM_CONTDISP_SHOW_HEADER;
+ else if(config->resume_from_current)
+ result = PARAM_CONTDISP_RESUME_FROM;
}
if(result && result != PARAM_HELP_REQUESTED &&