From 45bd739796f2dc2ecb2f67bb71120b1d1b3e1d44 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 27 Jun 2017 11:27:19 +0200 Subject: 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). --- options/m_option.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'options/m_option.c') 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} }, -- cgit v1.2.3