summaryrefslogtreecommitdiff
path: root/src/til_args.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/til_args.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/til_args.c')
-rw-r--r--src/til_args.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/til_args.c b/src/til_args.c
index e06d0d9..97b5ce7 100644
--- a/src/til_args.c
+++ b/src/til_args.c
@@ -48,6 +48,8 @@ static int args_parse(int argc, const char *argv[], til_args_t *res_args, int *r
res_args->use_defaults = 1;
} else if (!strcasecmp("--help", argv[i])) {
res_args->help = 1;
+ } else if (!strcasecmp("--go", argv[i])) {
+ res_args->gogogo = 1;
} else {
if (!res_argv)
return -EINVAL;
© All Rights Reserved