mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Bug 567212: Exit after dumping
The intended use of g_irepository_get_option_group is that your application more transparently supports --introspection-dump; we should exit so that your app doesn't continue trying to launch. svn path=/trunk/; revision=1023
This commit is contained in:
parent
ca638d9ecf
commit
2971e35fe6
@ -1174,7 +1174,8 @@ g_irepository_introspect_cb (const char *option_name,
|
||||
gpointer data,
|
||||
GError **error)
|
||||
{
|
||||
return g_irepository_dump (value, error);
|
||||
gboolean ret = g_irepository_dump (value, error);
|
||||
exit (ret ? 0 : 1);
|
||||
}
|
||||
|
||||
static const GOptionEntry introspection_args[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user