From a0cac7f1ca0764134954fddb1bab8072eca26b44 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 23 Nov 2009 14:24:00 +0000 Subject: Update some common egg code for better debugging support --- tools/dkp-tool.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/dkp-tool.c b/tools/dkp-tool.c index f853706..a2d700c 100644 --- a/tools/dkp-tool.c +++ b/tools/dkp-tool.c @@ -230,7 +230,6 @@ main (int argc, char **argv) gint retval = EXIT_FAILURE; guint i; GOptionContext *context; - gboolean verbose = FALSE; gboolean opt_dump = FALSE; gboolean opt_wakeups = FALSE; gboolean opt_enumerate = FALSE; @@ -244,7 +243,6 @@ main (int argc, char **argv) DkpDevice *device; const GOptionEntry entries[] = { - { "verbose", '\0', 0, G_OPTION_ARG_NONE, &verbose, _("Show extra debugging information"), NULL }, { "enumerate", 'e', 0, G_OPTION_ARG_NONE, &opt_enumerate, _("Enumerate objects paths for devices"), NULL }, { "dump", 'd', 0, G_OPTION_ARG_NONE, &opt_dump, _("Dump all parameters for all objects"), NULL }, { "wakeups", 'w', 0, G_OPTION_ARG_NONE, &opt_wakeups, _("Get the wakeup data"), NULL }, @@ -259,9 +257,9 @@ main (int argc, char **argv) context = g_option_context_new ("DeviceKit-power tool"); 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); loop = g_main_loop_new (NULL, FALSE); client = dkp_client_new (); -- cgit v1.2.1