diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-02-03 16:48:02 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-02-03 16:48:02 +0000 |
commit | ab8da71d29ad30030e39fd00aa2dc09666446b61 (patch) | |
tree | d9742fb78f66f5484712ea499c1c35df15d35c9c /src/fe-none | |
parent | c403b70de4b6b03d7d823d808f6e57f55cb07155 (diff) | |
download | irssi-ab8da71d29ad30030e39fd00aa2dc09666446b61.zip |
Remove popt and use glib GOption commandline option parser
(glib-2.6 is now the minimum required version).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4700 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-none')
-rw-r--r-- | src/fe-none/irssi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fe-none/irssi.c b/src/fe-none/irssi.c index ba47aab7..6c601627 100644 --- a/src/fe-none/irssi.c +++ b/src/fe-none/irssi.c @@ -81,10 +81,9 @@ void noui_deinit(void) int main(int argc, char **argv) { - static struct poptOption options[] = { - POPT_AUTOHELP - { "load", 'l', POPT_ARG_STRING, &autoload_module, 0, "Module to load (default = bot)", "MODULE" }, - { NULL, '\0', 0, NULL } + static GOptionEntry options[] = { + { "load", 'l', 0, G_OPTION_ARG_STRING, &autoload_module, "Module to load (default = bot)", "MODULE" }, + { NULL } }; autoload_module = NULL; |