diff options
author | wm4 <wm4@nowhere> | 2014-04-11 01:27:57 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-11 01:27:57 +0200 |
commit | 333c8cbc29c1d0c3e397af46f0cfc4c1beef2e7f (patch) | |
tree | 9076add029e28b5dbe1c6cd369db58f105005cd6 /options | |
parent | 86094c2c5ae634b9ff02a85e51c33955b31babfa (diff) | |
download | mpv-333c8cbc29c1d0c3e397af46f0cfc4c1beef2e7f.tar.bz2 mpv-333c8cbc29c1d0c3e397af46f0cfc4c1beef2e7f.tar.xz |
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.
Diffstat (limited to 'options')
-rw-r--r-- | options/m_property.c | 23 |
1 files changed, 4 insertions, 19 deletions
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); |