diff options
author | Vincent Sanders <vince@kyllikki.org> | 2013-06-01 15:49:17 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2013-06-01 16:09:39 +0100 |
commit | bccaa05fdb50a1d5f481cf34f6af906638dfc68c (patch) | |
tree | 86c32f6652b8b968f3e19fd5907485e601717d54 /monkey | |
parent | 9bd296987684788c32dd346b2d67671ed5dfe7a0 (diff) | |
download | netsurf-bccaa05fdb50a1d5f481cf34f6af906638dfc68c.tar.gz netsurf-bccaa05fdb50a1d5f481cf34f6af906638dfc68c.tar.bz2 |
add finalisation to options and document the API better
Diffstat (limited to 'monkey')
-rw-r--r-- | monkey/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/monkey/main.c b/monkey/main.c index 0a9826a3c..e806b0eb3 100644 --- a/monkey/main.c +++ b/monkey/main.c @@ -142,9 +142,9 @@ main(int argc, char **argv) die("Options failed to initialise"); } options = filepath_find(respaths, "Choices"); - nsoption_read(options, NULL); + nsoption_read(options, nsoptions); free(options); - nsoption_commandline(&argc, argv, NULL); + nsoption_commandline(&argc, argv, nsoptions); /* common initialisation */ messages = filepath_find(respaths, "Messages"); @@ -173,5 +173,9 @@ main(int argc, char **argv) netsurf_exit(); fprintf(stdout, "GENERIC FINISHED\n"); + + /* finalise options */ + nsoption_finalise(nsoptions, nsoptions_default); + return 0; } |