1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[main] Added --always-load-config command-line option. Refs #137

This option loads config on 2nd instance of ELinks and next.
It can be useful in alias.
This commit is contained in:
Witold Filipczyk 2022-01-04 15:15:39 +01:00
parent 016686a71e
commit dfe9186c87
2 changed files with 8 additions and 0 deletions

View File

@ -790,6 +790,10 @@ printconfigdump_cmd(struct option *option, char ***argv, int *argc)
union option_info cmdline_options_info[] = {
/* [gettext_accelerator_context(IGNORE)] */
INIT_OPT_BOOL("", N_("Load config also for slave instances"),
"always-load-config", 0, 0,
N_("Load config also for slave instances. Slower, but more robust.")),
INIT_OPT_BOOL("", N_("Restrict to anonymous mode"),
"anonymous", 0, 0,
N_("Restricts ELinks so it can run on an anonymous account. "

View File

@ -198,6 +198,10 @@ init(void)
init_modules(builtin_modules);
}
if (get_cmd_opt_bool("always-load-config")) {
parse_options_again();
}
if (get_cmd_opt_bool("dump")
|| get_cmd_opt_bool("source")) {
/* Dump the URL list */