Add config option for `--retry-input'

This commit is contained in:
0xfadead 2024-09-15 16:32:49 +02:00 committed by someordinaryidiot#
parent d269a99bcc
commit 9d72c82ec4
2 changed files with 4 additions and 0 deletions

View file

@ -59,6 +59,7 @@ typedef struct __config_t {
unsigned short color;
unsigned short disable_dl_timeout;
unsigned short disable_sandbox;
unsigned short retry_input;
char *print_format;
/* unfortunately, we have to keep track of paths both here and in the library
* because they can come from both the command line or config file, and we

View file

@ -500,6 +500,9 @@ static int parsearg_global(int opt)
case 'v':
(config->verbose)++;
break;
case OP_RETRYINPUT:
config->retry_input = 1;
break;
default:
return 1;
}