Load defaults for purpose of help.

This commit is contained in:
ZmnSCPxj 2017-12-08 23:15:00 +00:00 committed by Rusty Russell
parent f0fa01b439
commit 7c09b6f478

View file

@ -584,6 +584,11 @@ bool handle_opts(struct lightningd *ld, int argc, char *argv[])
{
bool newdir = false;
/* Load defaults first, so that --help (in early options) has something
* to display. The actual values loaded here, will be overwritten later
* by opt_parse_from_config. */
setup_default_config(ld);
/* Get any configdir/testnet options first. */
opt_early_parse(argc, argv, opt_log_stderr_exit);