summaryrefslogtreecommitdiff
path: root/src/til_args.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/til_args.c')
-rw-r--r--src/til_args.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/til_args.c b/src/til_args.c
index 8969d89..11f2487 100644
--- a/src/til_args.c
+++ b/src/til_args.c
@@ -12,6 +12,7 @@
* ./rototiller --defaults // use default settings where unspecified
* ./rototiller --go // don't show args and wait for user input before proceeding
* ./rototiller --seed=0xdeadbeef // explicitly set global random seed instead of generating one
+ * ./rototiller --print-pipes // print values for the pipes every frame
*
* unrecognized arguments trigger an -EINVAL error, unless res_{argc,argv} are non-NULL
* where a new argv will be allocated and populated with the otherwise invalid arguments
@@ -54,6 +55,8 @@ static int args_parse(int argc, const char *argv[], til_args_t *res_args, int *r
res_args->help = 1;
} else if (!strcasecmp("--go", argv[i])) {
res_args->gogogo = 1;
+ } else if (!strcasecmp("--print-pipes", argv[i])) {
+ res_args->print_pipes = 1;
} else {
if (!res_argv)
return -EINVAL;
© All Rights Reserved