diff --git a/drivers/video/video_shell.c b/drivers/video/video_shell.c index fe1a6402eef..1db58dab7b3 100644 --- a/drivers/video/video_shell.c +++ b/drivers/video/video_shell.c @@ -1049,28 +1049,26 @@ SHELL_DYNAMIC_CMD_CREATE(dsub_video_format_dev, complete_video_format_dev); SHELL_STATIC_SUBCMD_SET_CREATE(sub_video_cmds, SHELL_CMD_ARG(start, &dsub_video_dev, - "Start a video device and its sources\n" - "Usage: video start ", + SHELL_HELP("Start a video device and its sources", ""), cmd_video_start, 2, 0), SHELL_CMD_ARG(stop, &dsub_video_dev, - "Stop a video device and its sources\n" - "Usage: video stop ", + SHELL_HELP("Stop a video device and its sources", ""), cmd_video_stop, 2, 0), SHELL_CMD_ARG(capture, &dsub_video_dev, - "Capture a given number of buffers from a device\n" - "Usage: video capture ", + SHELL_HELP("Capture a given number of buffers from a device", + " "), cmd_video_capture, 3, 0), SHELL_CMD_ARG(format, &dsub_video_format_dev, - "Query or set the video format of a device\n" - "Usage: video format [ x]", + SHELL_HELP("Query or set the video format of a device", + " [ x]"), cmd_video_format, 3, 2), SHELL_CMD_ARG(frmival, &dsub_video_frmival_dev, - "Query or set the video frame rate/interval of a device\n" - "Usage: video frmival [fps|ms|us]", + SHELL_HELP("Query or set the video frame rate/interval of a device", + " [fps|ms|us]"), cmd_video_frmival, 2, 1), SHELL_CMD_ARG(ctrl, &dsub_video_ctrl_dev, - "Query or set video controls of a device\n" - "Usage: video ctrl [ ]", + SHELL_HELP("Query or set video controls of a device", + " [ ]"), cmd_video_ctrl, 2, 2), SHELL_SUBCMD_SET_END ); diff --git a/samples/drivers/video/capture/README.rst b/samples/drivers/video/capture/README.rst index 4acef0d17ab..43c5f79a8b9 100644 --- a/samples/drivers/video/capture/README.rst +++ b/samples/drivers/video/capture/README.rst @@ -148,21 +148,21 @@ If using the shell, the capture would not start, and instead it is possible to a .. code-block:: console - uart:~$ video + uart:~$ video --help video - Video driver commands Subcommands: start : Start a video device and its sources - Usage: video start + Usage: start stop : Stop a video device and its sources - Usage: video stop - capture : Capture a given number of frames from a device - Usage: video capture + Usage: stop + capture : Capture a given number of buffers from a device + Usage: capture format : Query or set the video format of a device - Usage: video format [ x] + Usage: format [ x] frmival : Query or set the video frame rate/interval of a device - Usage: video frmival [fps|ms|us] + Usage: frmival [fps|ms|us] ctrl : Query or set video controls of a device - Usage: video ctrl [ ] + Usage: ctrl [ ] uart:~$