From f526797a1650411b54a4e71daa8d0c2b8dc4ef47 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 29 Jan 2020 18:32:11 +0100 Subject: options: suggest not using the syntax that was recently disabled --- options/parse_commandline.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3