summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-01-29 18:32:11 +0100
committerwm4 <wm4@nowhere>2020-01-29 18:32:23 +0100
commitf526797a1650411b54a4e71daa8d0c2b8dc4ef47 (patch)
treeb84b57abb929148059ebe24b9836ed0e75af8264
parentcbfcd3e703a35e9f0ad1f5829711ce3655092869 (diff)
downloadmpv-f526797a1650411b54a4e71daa8d0c2b8dc4ef47.tar.bz2
mpv-f526797a1650411b54a4e71daa8d0c2b8dc4ef47.tar.xz
options: suggest not using the syntax that was recently disabled
-rw-r--r--options/parse_commandline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/options/parse_commandline.c b/options/parse_commandline.c
index f5ff330230..9cda8bb5cf 100644
--- a/options/parse_commandline.c
+++ b/options/parse_commandline.c
@@ -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;
}