mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 05:37:04 +00:00
options: don't sort sub-option help output
Commit 2c2c1203
sorted the output of --list-options, but the same code
ias also used for listing sub-options, such as --vo=scale:help. For sub-
options, the order actually matters.
This commit is contained in:
parent
5cfb180a89
commit
839c3ae64b
@ -672,7 +672,8 @@ void m_config_print_option_list(const struct m_config *config)
|
||||
|
||||
struct m_config_option *sorted =
|
||||
talloc_memdup(NULL, config->opts, config->num_opts * sizeof(sorted[0]));
|
||||
qsort(sorted, config->num_opts, sizeof(sorted[0]), sort_opt_compare);
|
||||
if (config->is_toplevel)
|
||||
qsort(sorted, config->num_opts, sizeof(sorted[0]), sort_opt_compare);
|
||||
|
||||
MP_INFO(config, "Options:\n\n");
|
||||
for (int i = 0; i < config->num_opts; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user