Skip to content

Commit 9a2d984

Browse files
committed
video switcher help: improve desc
wrap + notice how to actually switch
1 parent 7bea8c0 commit 9a2d984

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/video_capture/switcher.c

+10-5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include "lib_common.h"
4444
#include "utils/color_out.h"
4545
#include "utils/macros.h"
46+
#include "utils/text.h"
4647
#include "video.h"
4748
#include "video_capture.h"
4849

@@ -64,9 +65,14 @@ static void vidcap_switcher_done(void *state);
6465

6566
static void show_help()
6667
{
67-
color_printf(TBOLD("switcher") " capture allow switching between given "
68-
"video devices optionally with audio "
69-
"(see below or wiki for syntax)\n\n");
68+
char desc[] =
69+
TBOLD("switcher") " capture allow switching between given "
70+
"video devices optionally with audio "
71+
"(see below or wiki for usage).\n\n"
72+
"Switching can be done by using keys 1-N or "
73+
"via a control socket.\n\n";
74+
color_printf("%s", wrap_paragraph(desc));
75+
7076
color_printf("Usage:\n");
7177
color_printf("\t" TBOLD(TRED("-t switcher")) "[opts] " TBOLD(
7278
"-t <dev1> -t "
@@ -76,8 +82,7 @@ static void show_help()
7682
color_printf("\t" TBOLD(
7783
"<devN>") " - a configuration of device to be switched\n");
7884
color_printf("\t" TBOLD(
79-
"<port>") " - specifies port which should be used to control "
80-
"switching\n");
85+
"select=<N>") " - specifies initially selected device idx\n");
8186
color_printf("\t" TBOLD(
8287
"excl_init") " - devices will be initialized after switching to "
8388
"and\n\t\tdeinitialized after switching to another\n");

0 commit comments

Comments
 (0)