1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00

options: improve an error message

"mpv --ao=wasapi:help" on Linux gave "Option ao doesn't exist.".
Completely misleading and stupid.
This commit is contained in:
wm4 2015-06-27 21:26:05 +02:00
parent 1921f40db5
commit 85b7cbec70

View File

@ -2747,8 +2747,8 @@ print_help: ;
desc->print_help(log);
m_config_print_option_list(config);
} else {
mp_warn(log, "Option %.*s doesn't exist.\n",
BSTR_P(opt_name));
mp_warn(log, "Option %.*s: item %.*s doesn't exist.\n",
BSTR_P(opt_name), BSTR_P(name));
}
r = M_OPT_EXIT - 1;