Add basic `--retry-input', without any function

This commit is contained in:
0xfadead 2024-09-15 16:30:16 +02:00 committed by someordinaryidiot#
parent 7bc5d55b56
commit d269a99bcc
2 changed files with 4 additions and 1 deletions

View file

@ -214,7 +214,8 @@ enum {
OP_REFRESH,
OP_ASSUMEINSTALLED,
OP_DISABLEDLTIMEOUT,
OP_DISABLESANDBOX
OP_DISABLESANDBOX,
OP_RETRYINPUT
};
/* clean method */

View file

@ -228,6 +228,7 @@ static void usage(int op, const char * const myname)
" use relaxed timeouts for download\n"));
addlist(_(" --disable-sandbox\n"
" disable the sandbox used for the downloader process\n"));
addlist(_(" --retry-input repeat prompts until a valid answer is supplied\n"));
}
list = alpm_list_msort(list, alpm_list_count(list), options_cmp);
for(i = list; i; i = alpm_list_next(i)) {
@ -982,6 +983,7 @@ static int parseargs(int argc, char *argv[])
{"color", required_argument, 0, OP_COLOR},
{"disable-download-timeout", no_argument, 0, OP_DISABLEDLTIMEOUT},
{"disable-sandbox", no_argument, 0, OP_DISABLESANDBOX},
{"retry-input", no_argument, 0, OP_RETRYINPUT},
{0, 0, 0, 0}
};