From 633152e55a6f851c58267793081dea3162acfb48 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 23 Jun 2017 20:42:20 +0200 Subject: options: remove weird --really-quiet special behavior This was especially grating because it causes problems with the option/property unification, uses as only thing OPT_FLAG_STORE, and behaves weird with the client API or scripts. It can be reimplemented in a much simpler way, although it needs slightly more code. (Simpler because less special cases.) --- options/options.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index 620cc67318..03ab7c89bc 100644 --- a/options/options.c +++ b/options/options.c @@ -261,8 +261,7 @@ const m_option_t mp_opts[] = { // ------------------------- common options -------------------- OPT_FLAG("quiet", quiet, 0), - OPT_FLAG_STORE("really-quiet", verbose, - M_OPT_FIXED | CONF_PRE_PARSE | M_OPT_NOPROP, -10), + OPT_FLAG("really-quiet", msg_really_quiet, CONF_PRE_PARSE | UPDATE_TERM), OPT_FLAG("terminal", use_terminal, CONF_PRE_PARSE | UPDATE_TERM), OPT_GENERAL(char**, "msg-level", msg_levels, CONF_PRE_PARSE | UPDATE_TERM, .type = &m_option_type_msglevels), -- cgit v1.2.3