mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-11 05:13:50 +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,
|
gpointer data,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
return g_irepository_dump (value, error);
|
gboolean ret = g_irepository_dump (value, error);
|
||||||
|
exit (ret ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const GOptionEntry introspection_args[] = {
|
static const GOptionEntry introspection_args[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user