From d9074c366ed5d70c9384ae0378c1e6015a8e7d4e Mon Sep 17 00:00:00 2001 From: klemek Date: Sun, 23 Nov 2025 00:27:05 +0100 Subject: [PATCH] fix(args): vi for video-in --- README.md | 4 ++-- src/args.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5d22412..6ce515b 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ These are configurable in the [`forge_project.cfg`](#forge_projectcfg). ### CLI arguments ```txt -usage: forge [-h] [-v] [-p=PROJECT_PATH] [-c=CFG_FILE] [-hr] [-s=SCREEN] [-m=SCREEN] [-mo] [-w] [-t=TEMPO] [-d] [-ar / -nar] [-arc=CYCLES] [-v=FILE] [-vs=SIZE] [-is=SIZE] [-ls / -nls] [-ss / -nss] [-tm] [-tf] +usage: forge [-h] [-v] [-p=PROJECT_PATH] [-c=CFG_FILE] [-hr] [-s=SCREEN] [-m=SCREEN] [-mo] [-w] [-t=TEMPO] [-d] [-ar / -nar] [-arc=CYCLES] [-vi=FILE] [-vs=SIZE] [-is=SIZE] [-ls / -nls] [-ss / -nss] [-tm] [-tf] Fusion Of Real-time Generative Effects. @@ -193,7 +193,7 @@ options: -ar, --auto-random randomize state every cycle (4 beats) -nar, --no-auto-random do not randomize state (default) -arc, --auto-random-cycle auto random cycle length (default: 4) - -v, --video-in path to video capture device (multiple allowed) + -vi, --video-in path to video capture device (multiple allowed) -vs, --video-size video capture desired height (default: internal texture height) -is, --internal-size internal texture height (default: 720) -ls, --load-state load saved state (default) diff --git a/src/args.c b/src/args.c index 3cbd8b2..134625c 100644 --- a/src/args.c +++ b/src/args.c @@ -30,7 +30,7 @@ static void print_help(int status_code) { "[-d] " "[-ar / -nar] " "[-arc=CYCLES] " - "[-v=FILE] " + "[-vi=FILE] " "[-vs=SIZE] " "[-is=SIZE] " "[-ls / -nls] " @@ -57,7 +57,7 @@ static void print_help(int status_code) { " -ar, --auto-random randomize state every cycle (4 beats)\n" " -nar, --no-auto-random do not randomize state (default)\n" " -arc, --auto-random-cycle auto random cycle length (default: 4)\n" - " -v, --video-in path to video capture device (multiple " + " -vi, --video-in path to video capture device (multiple " "allowed)\n" " -vs, --video-size video capture desired height (default: " "internal texture height)\n" @@ -173,7 +173,7 @@ void args_parse(Parameters *params, int argc, char **argv) { if (params->auto_random_cycle == 0) { invalid_value(arg, value); } - } else if (is_arg(arg, "-v") || is_arg(arg, "--video-in")) { + } else if (is_arg(arg, "-vi") || is_arg(arg, "--video-in")) { if (params->video_in.length == MAX_VIDEO) { log_error("maximum video input reached"); exit(EXIT_FAILURE);