Add config option for `--retry-input'
This commit is contained in:
parent
d269a99bcc
commit
9d72c82ec4
2 changed files with 4 additions and 0 deletions
|
@ -59,6 +59,7 @@ typedef struct __config_t {
|
||||||
unsigned short color;
|
unsigned short color;
|
||||||
unsigned short disable_dl_timeout;
|
unsigned short disable_dl_timeout;
|
||||||
unsigned short disable_sandbox;
|
unsigned short disable_sandbox;
|
||||||
|
unsigned short retry_input;
|
||||||
char *print_format;
|
char *print_format;
|
||||||
/* unfortunately, we have to keep track of paths both here and in the library
|
/* 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
|
* because they can come from both the command line or config file, and we
|
||||||
|
|
|
@ -500,6 +500,9 @@ static int parsearg_global(int opt)
|
||||||
case 'v':
|
case 'v':
|
||||||
(config->verbose)++;
|
(config->verbose)++;
|
||||||
break;
|
break;
|
||||||
|
case OP_RETRYINPUT:
|
||||||
|
config->retry_input = 1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue