daemon/options: split option registration and parsing.

This allows us to add extra options before parsing.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-02-24 16:22:56 +10:30
parent 952722a8cf
commit a72dd8d9de
4 changed files with 11 additions and 3 deletions

View File

@@ -71,6 +71,7 @@ int main(int argc, char *argv[])
| SECP256K1_CONTEXT_SIGN);
/* Handle options and config; move to .lightningd */
register_opts(dstate);
handle_opts(dstate, argc, argv);
/* Activate crash log now we're in the right place. */