-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename various options for consistency reasons #12641
Conversation
edb12ed
to
8b7ced6
Compare
8b7ced6
to
84db908
Compare
So @guidocella pointed out some inconsistencies in the option naming in IRC, so I went ahead and included additional commits to change those. Feel free to to comment. |
We should pluralize |
Fair point.
Nah, it's more that I wasn't sure. There's already a |
IMHO it's not an inconsistency because "hardware decoding interop driver" is correct English while "hardware decoding current" is just nonsense. |
84db908
to
ac73671
Compare
That's true, but it's weird imo to have the property names not start the same. Like most video-related properties are |
Download the artifacts for this pull request: |
ac73671
to
4d52e30
Compare
While we're at it, can we find a better name for |
Seems surprisingly not controversial? I thought people were going to get upset at me for changing
Name seems OK to me? Haven't actually looked at you PR yet though. |
I was hoping we can use something that's in people's everyday vocabulary. Something like |
This better reflects what it actually does. As a bonus, script writers won't be misled into thinking that fps displays the actual video or display fps.
Other similar options are in the form of --foo-override not --override-foo. The display-fps one was backwards so flip it around the other way for consistency reasons.
This option has exactly the same semantics are other mpv options that override a particular thing with something from the user. So instead of the "force-style" name, use "-overrides" which is more consistent. The plural form is used since it's a list option.
Less characters is better? Other options use -dir for directory so consistency I guess.
Same logic as the previous commit.
--play-dir sounds like it has something to do with directories so change it. The play_dir variable is used a bunch everywhere internally so whatever just leave it alone instead of renaming that.
4d52e30
to
7bae311
Compare
This better reflects what it actually does. As a bonus, script writers won't be misled into thinking that fps displays the actual video or display fps.