summaryrefslogtreecommitdiff
path: root/src/fe-text/irssi.c
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-text/irssi.c
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-text/irssi.c')
-rw-r--r--src/fe-text/irssi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c
index f70724f4..9e3a9e21 100644
--- a/src/fe-text/irssi.c
+++ b/src/fe-text/irssi.c
@@ -329,10 +329,10 @@ GMemVTable gc_mem_table = {
int main(int argc, char **argv)
{
static int version = 0;
- static struct poptOption options[] = {
- { "dummy", 'd', POPT_ARG_NONE, &dummy, 0, "Use the dummy terminal mode", NULL },
- { "version", 'v', POPT_ARG_NONE, &version, 0, "Display irssi version", NULL },
- { NULL, '\0', 0, NULL }
+ static GOptionEntry options[] = {
+ { "dummy", 'd', 0, G_OPTION_ARG_NONE, &dummy, "Use the dummy terminal mode", NULL },
+ { "version", 'v', 0, G_OPTION_ARG_NONE, &version, "Display irssi version", NULL },
+ { NULL }
};
core_register_options();