diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 17a6f5567d..6d6cac3dbd 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -2526,6 +2526,10 @@ ParameterError parse_args(struct GlobalConfig *global, int argc, else result = PARAM_NO_MEM; } + else { + errorf(global, "missing URL before --next\n"); + result = PARAM_BAD_USE; + } } else if(!result && passarg) i++; /* we're supposed to skip this */