diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2022-12-14 23:01:16 +0000 |
---|---|---|
committer | Daniel Scally <dan.scally@ideasonboard.com> | 2023-01-16 07:52:59 +0000 |
commit | 66f0f93b78474109aa946ec5cd429d0d13d052f0 (patch) | |
tree | b8bdd0b8a63c46aba90043e42a9f5b0b55d0353f | |
parent | 193bec618c874e011a759b4f1ea590ac96ae694c (diff) |
main: Rename V4L2 option to 'd'
Use the option 'd' to specify a v4l2 capture device. This will free up
the use of option 'c' for 'camera' identifiers based on libcamera.
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -23,7 +23,7 @@ static void usage(const char *argv0) { fprintf(stderr, "Usage: %s [options] <uvc device>\n", argv0); fprintf(stderr, "Available options are\n"); - fprintf(stderr, " -c device V4L2 source device\n"); + fprintf(stderr, " -d device V4L2 source device\n"); fprintf(stderr, " -i image MJPEG image\n"); fprintf(stderr, " -s directory directory of slideshow images\n"); fprintf(stderr, " -h Print this help screen and exit\n"); @@ -71,9 +71,9 @@ int main(int argc, char *argv[]) int ret = 0; int opt; - while ((opt = getopt(argc, argv, "c:i:s:k:h")) != -1) { + while ((opt = getopt(argc, argv, "d:i:s:k:h")) != -1) { switch (opt) { - case 'c': + case 'd': cap_device = optarg; break; |