Don't try to open the display when parsing command line arguments

I'm not sure why this was done in the first place, but it doesn't seem
to be necessary.  This change will make it easier to add alternative
user interfaces.
This commit is contained in:
Tom Stellard 2020-12-27 18:57:03 -08:00
parent 7d55035600
commit 6ac8d9cb74
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ main_parse_cl_arguments(gint *argc, gchar ***argv)
context = g_option_context_new(_("- a simple and addictive GTK2 football manager"));
g_option_context_add_main_entries(context, entries, GETTEXT_PACKAGE);
g_option_context_add_group(context, gtk_get_option_group (TRUE));
g_option_context_add_group(context, gtk_get_option_group (FALSE));
g_option_context_parse(context, argc, argv, &error);
g_option_context_free(context);
@ -213,7 +213,7 @@ main_parse_debug_cl_arguments(gint *argc, gchar ***argv)
context = g_option_context_new(_("- a simple and addictive GTK2 football manager"));
g_option_context_set_ignore_unknown_options(context, TRUE);
g_option_context_add_main_entries(context, entries, GETTEXT_PACKAGE);
g_option_context_add_group(context, gtk_get_option_group (TRUE));
g_option_context_add_group(context, gtk_get_option_group (FALSE));
g_option_context_parse(context, argc, argv, &error);
g_option_context_free(context);