summaryrefslogtreecommitdiff
path: root/src/fe-none
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-02-03 16:48:02 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-02-03 16:48:02 +0000
commitab8da71d29ad30030e39fd00aa2dc09666446b61 (patch)
treed9742fb78f66f5484712ea499c1c35df15d35c9c /src/fe-none
parentc403b70de4b6b03d7d823d808f6e57f55cb07155 (diff)
downloadirssi-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.c7
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;