From: David Zeuthen Date: Mon, 25 Oct 2010 17:35:17 +0000 (-0400) Subject: Also use --object-path/-p for udisks info X-Git-Tag: upstream/2.1.2~480^2~176 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=439a64fe12da2c8759c2054b2d5db897493d0a40;p=platform%2Fupstream%2Fudisks2.git Also use --object-path/-p for udisks info Signed-off-by: David Zeuthen --- diff --git a/tools/udisks.c b/tools/udisks.c index 394d4f4..011fccc 100644 --- a/tools/udisks.c +++ b/tools/udisks.c @@ -703,7 +703,7 @@ static gchar *opt_info_device = NULL; static const GOptionEntry command_info_entries[] = { - { "object", 'o', 0, G_OPTION_ARG_STRING, &opt_info_object, "Object to get information about", NULL}, + { "object-path", 'p', 0, G_OPTION_ARG_STRING, &opt_info_object, "Object to get information about", NULL}, { "block-device", 'b', 0, G_OPTION_ARG_STRING, &opt_info_device, "Block device to get information about", NULL}, { NULL } }; @@ -740,7 +740,7 @@ handle_command_info (gint *argc, g_option_context_add_main_entries (o, command_info_entries, NULL /* GETTEXT_PACKAGE*/); complete_objects = FALSE; - if (request_completion && (g_strcmp0 (completion_prev, "--object") == 0 || g_strcmp0 (completion_prev, "-o") == 0)) + if (request_completion && (g_strcmp0 (completion_prev, "--object-path") == 0 || g_strcmp0 (completion_prev, "-p") == 0)) { complete_objects = TRUE; remove_arg ((*argc) - 1, argc, argv); @@ -768,7 +768,7 @@ handle_command_info (gint *argc, (opt_info_object == NULL && !complete_objects) && (opt_info_device == NULL && !complete_devices)) { - g_print ("--object \n" + g_print ("--object-path \n" "--block-device \n"); }