Add basic `--retry-input', without any function
This commit is contained in:
parent
7bc5d55b56
commit
d269a99bcc
2 changed files with 4 additions and 1 deletions
|
@ -214,7 +214,8 @@ enum {
|
||||||
OP_REFRESH,
|
OP_REFRESH,
|
||||||
OP_ASSUMEINSTALLED,
|
OP_ASSUMEINSTALLED,
|
||||||
OP_DISABLEDLTIMEOUT,
|
OP_DISABLEDLTIMEOUT,
|
||||||
OP_DISABLESANDBOX
|
OP_DISABLESANDBOX,
|
||||||
|
OP_RETRYINPUT
|
||||||
};
|
};
|
||||||
|
|
||||||
/* clean method */
|
/* clean method */
|
||||||
|
|
|
@ -228,6 +228,7 @@ static void usage(int op, const char * const myname)
|
||||||
" use relaxed timeouts for download\n"));
|
" use relaxed timeouts for download\n"));
|
||||||
addlist(_(" --disable-sandbox\n"
|
addlist(_(" --disable-sandbox\n"
|
||||||
" disable the sandbox used for the downloader process\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);
|
list = alpm_list_msort(list, alpm_list_count(list), options_cmp);
|
||||||
for(i = list; i; i = alpm_list_next(i)) {
|
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},
|
{"color", required_argument, 0, OP_COLOR},
|
||||||
{"disable-download-timeout", no_argument, 0, OP_DISABLEDLTIMEOUT},
|
{"disable-download-timeout", no_argument, 0, OP_DISABLEDLTIMEOUT},
|
||||||
{"disable-sandbox", no_argument, 0, OP_DISABLESANDBOX},
|
{"disable-sandbox", no_argument, 0, OP_DISABLESANDBOX},
|
||||||
|
{"retry-input", no_argument, 0, OP_RETRYINPUT},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue