diff options
author | Phil Jones <philj56@gmail.com> | 2023-04-09 18:26:52 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2023-04-09 18:26:52 +0100 |
commit | cfab8efa406c7ff1063cb6ef89cb41028d0e826e (patch) | |
tree | 35f5931295bcd430189002fc68abf1acdc03bf9c /src/config.c | |
parent | 0fe8548a6534a80aa81c288629799a752f0060c2 (diff) |
Add --auto-accept-single option.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index d831267..b78e3af 100644 --- a/src/config.c +++ b/src/config.c @@ -693,6 +693,11 @@ bool parse_option(struct tofi *tofi, const char *filename, size_t lineno, const if (!err) { tofi->require_match = val; } + } else if (strcasecmp(option, "auto-accept-single") == 0) { + bool val = parse_bool(filename, lineno, value, &err); + if (!err) { + tofi->auto_accept_single = val; + } } else if (strcasecmp(option, "hide-input") == 0) { bool val = parse_bool(filename, lineno, value, &err); if (!err) { |