mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.74k stars 2.93k forks source link

Client API: provide list of deprecated options/properties #8038

Open CogentRedTester opened 4 years ago

CogentRedTester commented 4 years ago

Expected behavior of the wanted feature

A property which provides a list of deprecated/removed options, similar to property-list, command-list, and options.

Use Case

I have a script which allows people to search for keybinds, commands, options, and properties, and have the results display on the osd. When searching for options and properties the script inevitably ends up accessing information about deprecated/removed options, which causes a huge number of warning/error messages to spam the console. If I had a way to know which options were deprecated before accessing information about them I could skip them in the script. It would also stop deprecated options showing up as seemingly valid entries in the search results.

ghost commented 4 years ago

Would it be sane to only list non-deprecated items with those list properties?

CogentRedTester commented 4 years ago

Well it wouldn't matter to me, but I figured there might be some legacy reasons to keep them? If you want to remove them then I'd consider this request complete

CogentRedTester commented 4 years ago

The one issue I can come up with is whether removing entries from options would also remove the equivalent options/deprecated-option property, which may still be used by some out of date scripts.

CogentRedTester commented 4 years ago

Just wanted to re-ask if anyone was considering this feature request.