From d269a99bcceaaa866a0406d26fe992db1771e4ed Mon Sep 17 00:00:00 2001 From: 0xfadead Date: Sun, 15 Sep 2024 16:30:16 +0200 Subject: [PATCH] Add basic `--retry-input', without any function --- src/pacman/conf.h | 3 ++- src/pacman/pacman.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pacman/conf.h b/src/pacman/conf.h index 5bffd187..d20eac47 100644 --- a/src/pacman/conf.h +++ b/src/pacman/conf.h @@ -214,7 +214,8 @@ enum { OP_REFRESH, OP_ASSUMEINSTALLED, OP_DISABLEDLTIMEOUT, - OP_DISABLESANDBOX + OP_DISABLESANDBOX, + OP_RETRYINPUT }; /* clean method */ diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 8f5fb6de..4e8d9dd1 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -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} };