From 405751d401e6393bcaff23c4bfb8420328967ce1 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 8 Sep 2023 11:40:28 +0200 Subject: [PATCH] display file: rename name option Although "file=" is common option name (eg. for testcard), advise rather "name", because "-d file:file=" looks a bit weird (but accept both). --- src/video_display/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_display/file.c b/src/video_display/file.c index c167c2b52..6b8cf70ff 100644 --- a/src/video_display/file.c +++ b/src/video_display/file.c @@ -135,7 +135,7 @@ usage(void) { color_printf("Display " TBOLD("file") " syntax:\n"); - color_printf("\t" TBOLD(TRED("file") "[:file=]") "\n\n"); + color_printf("\t" TBOLD(TRED("file") "[:name=]") "\n\n"); char desc[] = TBOLD("NUT") " files are written uncompressed. For other file " "formats " TBOLD( @@ -151,7 +151,7 @@ display_file_init(struct module *parent, const char *fmt, unsigned int flags) const char *filename = DEFAULT_FILENAME; UNUSED(parent); if (strlen(fmt) > 0) { - if (IS_KEY_PREFIX(fmt, "file")) { + if (IS_KEY_PREFIX(fmt, "file") || IS_KEY_PREFIX(fmt, "name")) { filename = strchr(fmt, '=') + 1; } else { usage();