diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-05-24 00:25:36 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-05-24 00:25:36 +0000 |
commit | 841cd8d0cf7767eae63300bbf5f98ebe65b02a71 (patch) | |
tree | 5f80b018fee2d85498d174c663b03cef8043311c /src/fe-text | |
parent | afa4292466c6de093d0cdf359a91160886933507 (diff) | |
download | irssi-841cd8d0cf7767eae63300bbf5f98ebe65b02a71.zip |
Cleanup option handling.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4510 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/irssi.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index 5e359073..f14cc630 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -332,6 +332,11 @@ int main(int argc, char **argv) { NULL, '\0', 0, NULL } }; + core_register_options(); + fe_common_core_register_options(); + args_register(options); + args_execute(argc, argv); + #ifdef USE_GC g_mem_set_vtable(&gc_mem_table); #endif @@ -340,7 +345,7 @@ int main(int argc, char **argv) dummy = FALSE; quitting = FALSE; - core_init_paths(argc, argv); + core_preinit(argv[0]); check_files(); @@ -363,8 +368,6 @@ int main(int argc, char **argv) setlocale(LC_ALL, ""); textui_init(); - args_register(options); - args_execute(argc, argv); if (!dummy && !term_init()) { fprintf(stderr, "Can't initialize screen handling, quitting.\n"); |