summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
Diffstat (limited to 'options')
-rw-r--r--options/options.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c
index 57cf20afa8..223c3ff666 100644
--- a/options/options.c
+++ b/options/options.c
@@ -541,7 +541,12 @@ const m_option_t mp_opts[] = {
OPT_STRING("osd-msg2", osd_msg[1], 0),
OPT_STRING("osd-msg3", osd_msg[2], 0),
- OPT_FLAG("idle", player_idle_mode, M_OPT_GLOBAL),
+ OPT_CHOICE("idle", player_idle_mode, M_OPT_OPTIONAL_PARAM,
+ ({"no", 0},
+ {"once", 1},
+ {"yes", 2},
+ {"", 2})),
+
OPT_FLAG("input-terminal", consolecontrols, CONF_GLOBAL),
OPT_STRING("input-file", input_file, M_OPT_FILE | M_OPT_GLOBAL),