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:
parent
016686a71e
commit
dfe9186c87
@ -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. "
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user