refactor: update args
This commit is contained in:
@@ -101,7 +101,7 @@ When running, the following keybindings are available:
|
|||||||
### CLI arguments
|
### CLI arguments
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
usage: forge [-h] [-v] [-hr] [-s=SCREEN] [-m=SCREEN] [-mo] [-p=PROJECT_PATH] [-c=CFG_FILE] [-sf=STATE_PATH] [-ls / -nls] [-ss / -nss] [-is=SIZE] [-v=FILE] [-vs=SIZE] [-t=TEMPO] [--demo] [-w]
|
usage: forge [-h] [-v] [-hr] [-s=SCREEN] [-m=SCREEN] [-mo] [-p=PROJECT_PATH] [-c=CFG_FILE] [-sf=STATE_PATH] [-ls / -nls] [-ss / -nss] [-is=SIZE] [-v=FILE] [-vs=SIZE] [-t=TEMPO] [-d] [-w] [-tm] [-tf]
|
||||||
|
|
||||||
Fusion Of Real-time Generative Effects.
|
Fusion Of Real-time Generative Effects.
|
||||||
|
|
||||||
@@ -123,10 +123,10 @@ options:
|
|||||||
-v, --video-in path to video capture device (multiple allowed)
|
-v, --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)
|
||||||
-t, --tempo base tempo (default: 60)
|
-t, --tempo base tempo (default: 60)
|
||||||
--demo demonstration mode (assume --no-save-state and --no-load-state)
|
-d, --demo demonstration mode (assume --no-save-state and --no-load-state)
|
||||||
-w, --windowed not fullscreen
|
-w, --windowed not fullscreen
|
||||||
--trace-midi print midi code and values
|
-tm, --trace-midi print midi code and values
|
||||||
--trace-fps print fps status of subsystems
|
-tf, --trace-fps print fps status of subsystems
|
||||||
```
|
```
|
||||||
|
|
||||||
## Default Project
|
## Default Project
|
||||||
|
|||||||
+9
-7
@@ -29,8 +29,10 @@ static void print_help(int status_code) {
|
|||||||
"[-v=FILE] "
|
"[-v=FILE] "
|
||||||
"[-vs=SIZE] "
|
"[-vs=SIZE] "
|
||||||
"[-t=TEMPO] "
|
"[-t=TEMPO] "
|
||||||
"[--demo] "
|
"[-d] "
|
||||||
"[-w] "
|
"[-w] "
|
||||||
|
"[-tm] "
|
||||||
|
"[-tf] "
|
||||||
"\n\n"
|
"\n\n"
|
||||||
"Fusion Of Real-time Generative Effects.\n\n"
|
"Fusion Of Real-time Generative Effects.\n\n"
|
||||||
"options:\n"
|
"options:\n"
|
||||||
@@ -56,11 +58,11 @@ static void print_help(int status_code) {
|
|||||||
" -vs, --video-size video capture desired height (default: "
|
" -vs, --video-size video capture desired height (default: "
|
||||||
"internal texture height)\n"
|
"internal texture height)\n"
|
||||||
" -t, --tempo base tempo (default: 60)\n"
|
" -t, --tempo base tempo (default: 60)\n"
|
||||||
" --demo demonstration mode (assume --no-save-state "
|
" -d, --demo demonstration mode (assume --no-save-state "
|
||||||
"and --no-load-state)\n"
|
"and --no-load-state)\n"
|
||||||
" -w, --windowed not fullscreen\n"
|
" -w, --windowed not fullscreen\n"
|
||||||
" --trace-midi print midi code and values\n"
|
" -tm, --trace-midi print midi code and values\n"
|
||||||
" --trace-fps print fps status of subsystems\n");
|
" -tf, --trace-fps print fps status of subsystems\n");
|
||||||
exit(status_code);
|
exit(status_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,15 +171,15 @@ Parameters args_parse(int argc, char **argv) {
|
|||||||
} else if (is_arg(arg, "-mo") || is_arg(arg, "--monitor-only")) {
|
} else if (is_arg(arg, "-mo") || is_arg(arg, "--monitor-only")) {
|
||||||
params.output = false;
|
params.output = false;
|
||||||
params.monitor = true;
|
params.monitor = true;
|
||||||
} else if (is_arg(arg, "--demo")) {
|
} else if (is_arg(arg, "-d") || is_arg(arg, "--demo")) {
|
||||||
params.demo = true;
|
params.demo = true;
|
||||||
params.load_state = false;
|
params.load_state = false;
|
||||||
params.save_state = false;
|
params.save_state = false;
|
||||||
} else if (is_arg(arg, "-w") || is_arg(arg, "--windowed")) {
|
} else if (is_arg(arg, "-w") || is_arg(arg, "--windowed")) {
|
||||||
params.windowed = true;
|
params.windowed = true;
|
||||||
} else if (is_arg(arg, "--trace-midi")) {
|
} else if (is_arg(arg, "-tm") || is_arg(arg, "--trace-midi")) {
|
||||||
params.trace_midi = true;
|
params.trace_midi = true;
|
||||||
} else if (is_arg(arg, "--trace-fps")) {
|
} else if (is_arg(arg, "-tf") || is_arg(arg, "--trace-fps")) {
|
||||||
params.trace_fps = true;
|
params.trace_fps = true;
|
||||||
} else {
|
} else {
|
||||||
invalid_arg(arg);
|
invalid_arg(arg);
|
||||||
|
|||||||
Reference in New Issue
Block a user