From 7c09b6f478f32092b5125bc71ea3d81970138984 Mon Sep 17 00:00:00 2001 From: ZmnSCPxj Date: Fri, 8 Dec 2017 23:15:00 +0000 Subject: [PATCH] Load defaults for purpose of help. --- lightningd/options.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightningd/options.c b/lightningd/options.c index 0d46c23a7..e98d0adff 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -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);