diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -32,6 +32,7 @@ static gchar *opt_profile; static gboolean opt_private; static gboolean opt_version; +static gchar **opt_uris; static GOptionEntry entries[] = { {"profile", 'P', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, @@ -46,6 +47,11 @@ static GOptionEntry entries[] = { &opt_version, "Show application version", NULL}, + {G_OPTION_REMAINING, '\0', + G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING_ARRAY, + &opt_uris, + "URIs", + NULL}, {NULL} }; @@ -73,7 +79,7 @@ main(int argc, char *argv[]) return EXIT_SUCCESS; } - mq_window_new(argc, argv); + mq_window_new(opt_uris); gtk_main(); |