From 66f0f93b78474109aa946ec5cd429d0d13d052f0 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 14 Dec 2022 23:01:16 +0000 Subject: 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 Signed-off-by: Kieran Bingham --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 4ed0101..0e8726a 100644 --- a/src/main.c +++ b/src/main.c @@ -23,7 +23,7 @@ static void usage(const char *argv0) { fprintf(stderr, "Usage: %s [options] \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; -- cgit v1.2.3