options: don't let --vf-clr etc. take an argument

It was ignored before. Passing an argument makes no sense, and might be
mistaken for some form of --vf-del, so complain about it.

This also affects --af-clr and the vf/af commands.
This commit is contained in:
wm4 2015-04-13 20:30:17 +02:00
parent 3823d5eb7e
commit 9e0cd3b3e7
1 changed files with 5 additions and 0 deletions

View File

@ -2934,6 +2934,11 @@ static int parse_obj_settings_list(struct mp_log *log, const m_option_t *opt,
}
if (op == OP_CLR) {
if (param.len) {
mp_err(log, "Option %.*s: -clr does not take an argument.\n",
BSTR_P(name));
return M_OPT_INVALID;
}
if (dst)
free_obj_settings_list(dst);
return 0;