options: suggest not using the syntax that was recently disabled

This commit is contained in:
wm4 2020-01-29 18:32:11 +01:00
parent cbfcd3e703
commit f526797a16
1 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,10 @@ static bool split_opt(struct parse_state *p)
MP_FATAL(p->config, "Error parsing commandline option %.*s: %s\n",
BSTR_P(p->arg), m_option_strerror(r));
if (r == M_OPT_MISSING_PARAM) {
MP_WARN(p->config, "Make sure you're using e.g. '--%.*s=value' instead "
"of '--%.*s value'.\n", BSTR_P(p->arg), BSTR_P(p->arg));
}
return false;
}