summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index bcd3208..58bb13e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -812,6 +812,9 @@ main (gint argc, gchar **argv) {
/*nothing*/;
if (nextopt != -1) {
+ /* FIXME : We should probably handle --display, or at least maybe load some of the gtk+
+ * commandline options
+ */
g_printerr (_("%s in an invalid option for this dialog\n"), poptBadOption (ctx, 0));
zenity_free_parsing_options ();
exit (-1);
@@ -1220,8 +1223,6 @@ void zenity_parse_options_callback (poptContext ctx,
exit (0);
break;
default:
- g_warning ("Invalid option %s", arg);
- zenity_free_parsing_options ();
- exit (-1);
+ break;
}
}