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:
parent
1921f40db5
commit
85b7cbec70
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user