diff options
author | wm4 <wm4@nowhere> | 2020-01-29 18:32:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-01-29 18:32:23 +0100 |
commit | f526797a1650411b54a4e71daa8d0c2b8dc4ef47 (patch) | |
tree | b84b57abb929148059ebe24b9836ed0e75af8264 /options/parse_commandline.c | |
parent | cbfcd3e703a35e9f0ad1f5829711ce3655092869 (diff) | |
download | mpv-f526797a1650411b54a4e71daa8d0c2b8dc4ef47.tar.bz2 mpv-f526797a1650411b54a4e71daa8d0c2b8dc4ef47.tar.xz |
options: suggest not using the syntax that was recently disabled
Diffstat (limited to 'options/parse_commandline.c')
-rw-r--r-- | options/parse_commandline.c | 4 |
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; } |