mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
in ./lightningd --help, tell for which network the default values
are shown
This commit is contained in:
committed by
Rusty Russell
parent
0a5dc713f0
commit
d309a7d1b9
@@ -714,11 +714,16 @@ static char *test_daemons_and_exit(struct lightningd *ld)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *opt_lightningd_usage(struct lightningd *ld) {
|
static char *opt_lightningd_usage(struct lightningd *ld)
|
||||||
|
{
|
||||||
/* Reload config so that --help has the correct network defaults
|
/* Reload config so that --help has the correct network defaults
|
||||||
* to display before it exits */
|
* to display before it exits */
|
||||||
setup_default_config(ld);
|
setup_default_config(ld);
|
||||||
opt_usage_and_exit("\nA bitcoin lightning daemon.");
|
char *extra = tal_fmt(NULL, "\nA bitcoin lightning daemon (default "
|
||||||
|
"values shown for network: %s).",
|
||||||
|
get_chainparams(ld)->network_name);
|
||||||
|
opt_usage_and_exit(extra);
|
||||||
|
tal_free(extra);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user