From 9a2d984163cd3e282b5f517257190b1f7ee1e054 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 3 Jan 2024 16:45:43 +0100 Subject: [PATCH] video switcher help: improve desc wrap + notice how to actually switch --- src/video_capture/switcher.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/video_capture/switcher.c b/src/video_capture/switcher.c index 13e48968e..ecc93846d 100644 --- a/src/video_capture/switcher.c +++ b/src/video_capture/switcher.c @@ -43,6 +43,7 @@ #include "lib_common.h" #include "utils/color_out.h" #include "utils/macros.h" +#include "utils/text.h" #include "video.h" #include "video_capture.h" @@ -64,9 +65,14 @@ static void vidcap_switcher_done(void *state); static void show_help() { - color_printf(TBOLD("switcher") " capture allow switching between given " - "video devices optionally with audio " - "(see below or wiki for syntax)\n\n"); + char desc[] = + TBOLD("switcher") " capture allow switching between given " + "video devices optionally with audio " + "(see below or wiki for usage).\n\n" + "Switching can be done by using keys 1-N or " + "via a control socket.\n\n"; + color_printf("%s", wrap_paragraph(desc)); + color_printf("Usage:\n"); color_printf("\t" TBOLD(TRED("-t switcher")) "[opts] " TBOLD( "-t -t " @@ -76,8 +82,7 @@ static void show_help() color_printf("\t" TBOLD( "") " - a configuration of device to be switched\n"); color_printf("\t" TBOLD( - "") " - specifies port which should be used to control " - "switching\n"); + "select=") " - specifies initially selected device idx\n"); color_printf("\t" TBOLD( "excl_init") " - devices will be initialized after switching to " "and\n\t\tdeinitialized after switching to another\n");