mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
in ./lightningd --help, tell for which network the default values
are shown
This commit is contained in:
parent
0a5dc713f0
commit
d309a7d1b9
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue