From 333c8cbc29c1d0c3e397af46f0cfc4c1beef2e7f Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 11 Apr 2014 01:27:57 +0200 Subject: command: remove extended information from --list-properties This used to display the property type, but it was not always correct or even available. The way the property mechanism works, we can know this only at runtime. --- options/m_property.c | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'options') diff --git a/options/m_property.c b/options/m_property.c index 23d328a0f9..9b3de3cc5d 100644 --- a/options/m_property.c +++ b/options/m_property.c @@ -366,27 +366,12 @@ char *m_properties_expand_string(const m_option_t *prop_list, void m_properties_print_help_list(struct mp_log *log, const struct m_option* list) { - char min[50], max[50]; - int i, count = 0; + int count = 0; - mp_info(log, - "\n Name Type Min Max\n\n"); - for (i = 0; list[i].name; i++) { + mp_info(log, "Name\n\n"); + for (int i = 0; list[i].name; i++) { const m_option_t *opt = &list[i]; - if (opt->flags & M_OPT_MIN) - sprintf(min, "%-8.0f", opt->min); - else - strcpy(min, "No"); - if (opt->flags & M_OPT_MAX) - sprintf(max, "%-8.0f", opt->max); - else - strcpy(max, "No"); - mp_info(log, - " %-20.20s %-15.15s %-10.10s %-10.10s\n", - opt->name, - opt->type->name, - min, - max); + mp_info(log, " %s\n", opt->name); count++; } mp_info(log, "\nTotal: %d properties\n", count); -- cgit v1.2.3