summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2022-12-14 23:01:16 +0000
committerDaniel Scally <dan.scally@ideasonboard.com>2023-01-16 07:52:59 +0000
commit66f0f93b78474109aa946ec5cd429d0d13d052f0 (patch)
treeb8bdd0b8a63c46aba90043e42a9f5b0b55d0353f /src
parent193bec618c874e011a759b4f1ea590ac96ae694c (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>
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
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] <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;