summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-05-25 13:25:22 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-05-25 13:25:22 -0700
commita5851bf4e75867a7a232d75eb0fb4fc9674f3a23 (patch)
treef4588e6b7a06c172237cec90281fa98b817db63b /src/main.c
parent9b6136a732114949be57d42ce358f7b3cc2f5bbf (diff)
til: add --go to supported args
In rototiller this disables the automatic displaying of settings actually used when they differ from what was explicitly specified as args. Which also disables the waiting to press a key. This should also get used by glimmer to automatically start rendering without just putting up the configured settings panel and waiting for a click on "go!".
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 4b3dae6..8906327 100644
--- a/src/main.c
+++ b/src/main.c
@@ -177,7 +177,7 @@ static int print_setup_as_args(setup_t *setup)
goto _out_module;
}
- r = printf("\nConfigured settings as flags:\n --module=%s --video=%s\n\nPress enter to continue...\n",
+ r = printf("\nConfigured settings as flags:\n --module=%s --video=%s\n\nPress enter to continue, add --go to disable this notice...\n",
module_args,
video_args);
@@ -258,7 +258,7 @@ int main(int argc, const char *argv[])
exit_if((r = setup_from_args(&args, &setup)) < 0,
"unable to setup: %s", strerror(-r));
- exit_if(r && print_setup_as_args(&setup) < 0,
+ exit_if(!args.gogogo && r && print_setup_as_args(&setup) < 0,
"unable to print setup");
exit_if(!(rototiller.module = til_lookup_module(til_settings_get_key(setup.module, 0, NULL))),
© All Rights Reserved