fix(args): vi for video-in
This commit is contained in:
@@ -174,7 +174,7 @@ These are configurable in the [`forge_project.cfg`](#forge_projectcfg).
|
|||||||
### CLI arguments
|
### CLI arguments
|
||||||
|
|
||||||
```txt
|
```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.
|
Fusion Of Real-time Generative Effects.
|
||||||
|
|
||||||
@@ -193,7 +193,7 @@ options:
|
|||||||
-ar, --auto-random randomize state every cycle (4 beats)
|
-ar, --auto-random randomize state every cycle (4 beats)
|
||||||
-nar, --no-auto-random do not randomize state (default)
|
-nar, --no-auto-random do not randomize state (default)
|
||||||
-arc, --auto-random-cycle auto random cycle length (default: 4)
|
-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)
|
-vs, --video-size video capture desired height (default: internal texture height)
|
||||||
-is, --internal-size internal texture height (default: 720)
|
-is, --internal-size internal texture height (default: 720)
|
||||||
-ls, --load-state load saved state (default)
|
-ls, --load-state load saved state (default)
|
||||||
|
|||||||
+3
-3
@@ -30,7 +30,7 @@ static void print_help(int status_code) {
|
|||||||
"[-d] "
|
"[-d] "
|
||||||
"[-ar / -nar] "
|
"[-ar / -nar] "
|
||||||
"[-arc=CYCLES] "
|
"[-arc=CYCLES] "
|
||||||
"[-v=FILE] "
|
"[-vi=FILE] "
|
||||||
"[-vs=SIZE] "
|
"[-vs=SIZE] "
|
||||||
"[-is=SIZE] "
|
"[-is=SIZE] "
|
||||||
"[-ls / -nls] "
|
"[-ls / -nls] "
|
||||||
@@ -57,7 +57,7 @@ static void print_help(int status_code) {
|
|||||||
" -ar, --auto-random randomize state every cycle (4 beats)\n"
|
" -ar, --auto-random randomize state every cycle (4 beats)\n"
|
||||||
" -nar, --no-auto-random do not randomize state (default)\n"
|
" -nar, --no-auto-random do not randomize state (default)\n"
|
||||||
" -arc, --auto-random-cycle auto random cycle length (default: 4)\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"
|
"allowed)\n"
|
||||||
" -vs, --video-size video capture desired height (default: "
|
" -vs, --video-size video capture desired height (default: "
|
||||||
"internal texture height)\n"
|
"internal texture height)\n"
|
||||||
@@ -173,7 +173,7 @@ void args_parse(Parameters *params, int argc, char **argv) {
|
|||||||
if (params->auto_random_cycle == 0) {
|
if (params->auto_random_cycle == 0) {
|
||||||
invalid_value(arg, value);
|
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) {
|
if (params->video_in.length == MAX_VIDEO) {
|
||||||
log_error("maximum video input reached");
|
log_error("maximum video input reached");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|||||||
Reference in New Issue
Block a user