options: prefix option with "--" in one case in help output

This commit is contained in:
wm4 2018-02-13 02:31:29 +01:00 committed by Kevin Mitchell
parent 7b5a2588bd
commit d7c38a0b23
1 changed files with 1 additions and 1 deletions

View File

@ -1046,7 +1046,7 @@ void m_config_print_option_list(const struct m_config *config, const char *name)
if (opt->type == &m_option_type_alias)
MP_INFO(config, " for %s", (char *)opt->priv);
if (opt->type == &m_option_type_cli_alias)
MP_INFO(config, " for %s (CLI/config files only)", (char *)opt->priv);
MP_INFO(config, " for --%s (CLI/config files only)", (char *)opt->priv);
MP_INFO(config, "\n");
for (int n = 0; opt->type->actions && opt->type->actions[n].name; n++) {
const struct m_option_action *action = &opt->type->actions[n];