summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-27 11:27:19 +0200
committerwm4 <wm4@nowhere>2017-06-27 11:27:19 +0200
commit45bd739796f2dc2ecb2f67bb71120b1d1b3e1d44 (patch)
tree5a7eb4d8f64d5f0b1418f7a0909dad1865e3f9d1 /options
parent1328005937535952ac3bfee07885f2e36edb6255 (diff)
downloadmpv-45bd739796f2dc2ecb2f67bb71120b1d1b3e1d44.tar.bz2
mpv-45bd739796f2dc2ecb2f67bb71120b1d1b3e1d44.tar.xz
options: sort action list alphabetically
There is no technical need for this, but it's nicer if --list-options appears to output them sorted (it only actually sorts the actual option list, while actions are output in the order they are defined).
Diffstat (limited to 'options')
-rw-r--r--options/m_option.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/options/m_option.c b/options/m_option.c
index 6b9179aec4..9403817ed8 100644
--- a/options/m_option.c
+++ b/options/m_option.c
@@ -1399,12 +1399,12 @@ const m_option_type_t m_option_type_string_list = {
.get = str_list_get,
.set = str_list_set,
.actions = (const struct m_option_action[]){
- {"add-str"},
- {"set"},
{"add"},
- {"pre"},
+ {"add-str"},
+ {"clr", M_OPT_TYPE_OPTIONAL_PARAM},
{"del"},
- {"clr", M_OPT_TYPE_OPTIONAL_PARAM},
+ {"pre"},
+ {"set"},
{0}
},
};
@@ -1425,12 +1425,12 @@ const m_option_type_t m_option_type_string_append_list = {
.get = str_list_get,
.set = str_list_set,
.actions = (const struct m_option_action[]){
- {"add-str"},
- {"set"},
{"add"},
- {"pre"},
+ {"add-str"},
+ {"clr", M_OPT_TYPE_OPTIONAL_PARAM},
{"del"},
- {"clr", M_OPT_TYPE_OPTIONAL_PARAM},
+ {"pre"},
+ {"set"},
{0}
},
};
@@ -3243,11 +3243,11 @@ const m_option_type_t m_option_type_obj_settings_list = {
.get = get_obj_settings_list,
.actions = (const struct m_option_action[]){
{"add"},
- {"set"},
- {"pre"},
- {"del"},
{"clr", M_OPT_TYPE_OPTIONAL_PARAM},
+ {"del"},
{"help", M_OPT_TYPE_OPTIONAL_PARAM},
+ {"pre"},
+ {"set"},
{"toggle"},
{0}
},