diff options
author | Richard Hughes <richard@hughsie.com> | 2009-11-23 14:24:00 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2009-11-23 14:24:00 +0000 |
commit | a0cac7f1ca0764134954fddb1bab8072eca26b44 (patch) | |
tree | 7bb724643f5ed86884e6390dd99a4903c1527929 /src/dkp-main.c | |
parent | 7482af780b1857b186da1071e95c1d9b89a345dd (diff) |
Update some common egg code for better debugging support
Diffstat (limited to 'src/dkp-main.c')
-rw-r--r-- | src/dkp-main.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/dkp-main.c b/src/dkp-main.c index ed9f81c..57165c0 100644 --- a/src/dkp-main.c +++ b/src/dkp-main.c @@ -117,23 +117,15 @@ main (gint argc, gchar **argv) GOptionContext *context; DBusGProxy *bus_proxy; DBusGConnection *bus; - gboolean verbose = FALSE; gboolean ret; gint retval = 1; - const GOptionEntry entries[] = { - { "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, - _("Show extra debugging information"), NULL }, - { NULL } - }; - g_type_init (); context = g_option_context_new ("DeviceKit Power Daemon"); - g_option_context_add_main_entries (context, entries, NULL); + g_option_context_add_group (context, egg_debug_get_option_group ()); g_option_context_parse (context, &argc, &argv, NULL); g_option_context_free (context); - egg_debug_init (verbose); /* get bus connection */ bus = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error); |