input/cmd: increase the command length for --input-cmdlist

--input-cmdlist crops playlist-next-playlist, playlist-prev-playlist,
write-watch-later-config and delete-watch-later-config, so increase the
string length to that of the longest command.

Also stop specifying both the minimum and maximum length since they are
the same.
This commit is contained in:
Guido Cella 2024-11-14 16:50:09 +01:00 committed by sfan5
parent 1c9d066c9e
commit da82c0428e
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ void mp_print_cmd_list(struct mp_log *out)
{ {
for (int i = 0; mp_cmds[i].name; i++) { for (int i = 0; mp_cmds[i].name; i++) {
const struct mp_cmd_def *def = &mp_cmds[i]; const struct mp_cmd_def *def = &mp_cmds[i];
mp_info(out, "%-20.20s", def->name); mp_info(out, "%-25s", def->name);
for (int j = 0; j < MP_CMD_DEF_MAX_ARGS && def->args[j].type; j++) { for (int j = 0; j < MP_CMD_DEF_MAX_ARGS && def->args[j].type; j++) {
const struct m_option *arg = &def->args[j]; const struct m_option *arg = &def->args[j];
bool is_opt = arg->defval || (arg->flags & MP_CMD_OPT_ARG); bool is_opt = arg->defval || (arg->flags & MP_CMD_OPT_ARG);