|
|
48c875 |
From 77d66094d945e38608f98347bd3c117a90a01913 Mon Sep 17 00:00:00 2001
|
|
|
48c875 |
From: Pavel Grunt <pgrunt@redhat.com>
|
|
|
48c875 |
Date: Fri, 3 Mar 2017 14:08:46 +0100
|
|
|
48c875 |
Subject: [PATCH 26/26] virt-viewer: Adjust name-id-uuid comment
|
|
|
48c875 |
|
|
|
48c875 |
virt-viewer by default chooses the VM by its id, then uuid
|
|
|
48c875 |
and then by name. Adjust the comment to match the implementation.
|
|
|
48c875 |
|
|
|
48c875 |
Related: rhbz#1399077
|
|
|
48c875 |
---
|
|
|
48c875 |
man/virt-viewer.pod | 2 +-
|
|
|
48c875 |
src/virt-viewer.c | 6 +++---
|
|
|
48c875 |
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
48c875 |
|
|
|
48c875 |
diff --git a/man/virt-viewer.pod b/man/virt-viewer.pod
|
|
|
48c875 |
index 30af8db..8463eb4 100644
|
|
|
48c875 |
--- a/man/virt-viewer.pod
|
|
|
48c875 |
+++ b/man/virt-viewer.pod
|
|
|
48c875 |
@@ -5,7 +5,7 @@ virt-viewer - display the graphical console for a virtual machine
|
|
|
48c875 |
|
|
|
48c875 |
=head1 SYNOPSIS
|
|
|
48c875 |
|
|
|
48c875 |
-B<virt-viewer> [OPTIONS] [DOMAIN-NAME|ID|UUID]
|
|
|
48c875 |
+B<virt-viewer> [OPTIONS] [ID|UUID|DOMAIN-NAME]
|
|
|
48c875 |
|
|
|
48c875 |
=head1 DESCRIPTION
|
|
|
48c875 |
|
|
|
48c875 |
diff --git a/src/virt-viewer.c b/src/virt-viewer.c
|
|
|
48c875 |
index 22a952a..65c0546 100644
|
|
|
48c875 |
--- a/src/virt-viewer.c
|
|
|
48c875 |
+++ b/src/virt-viewer.c
|
|
|
48c875 |
@@ -142,7 +142,7 @@ virt_viewer_add_option_entries(VirtViewerApp *self, GOptionContext *context, GOp
|
|
|
48c875 |
{ "uuid", '\0', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, opt_domain_selection_cb,
|
|
|
48c875 |
N_("Select the virtual machine only by its uuid"), NULL },
|
|
|
48c875 |
{ G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_STRING_ARRAY, &opt_args,
|
|
|
48c875 |
- NULL, "-- DOMAIN-NAME|ID|UUID" },
|
|
|
48c875 |
+ NULL, "-- ID|UUID|DOMAIN-NAME" },
|
|
|
48c875 |
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
|
|
|
48c875 |
};
|
|
|
48c875 |
|
|
|
48c875 |
@@ -166,7 +166,7 @@ virt_viewer_local_command_line (GApplication *gapp,
|
|
|
48c875 |
|
|
|
48c875 |
if (opt_args) {
|
|
|
48c875 |
if (g_strv_length(opt_args) != 1) {
|
|
|
48c875 |
- g_printerr(_("\nUsage: %s [OPTIONS] [DOMAIN-NAME|ID|UUID]\n\n"), PACKAGE);
|
|
|
48c875 |
+ g_printerr(_("\nUsage: %s [OPTIONS] [ID|UUID|DOMAIN-NAME]\n\n"), PACKAGE);
|
|
|
48c875 |
ret = TRUE;
|
|
|
48c875 |
*status = 1;
|
|
|
48c875 |
goto end;
|
|
|
48c875 |
@@ -178,7 +178,7 @@ virt_viewer_local_command_line (GApplication *gapp,
|
|
|
48c875 |
|
|
|
48c875 |
if (opt_waitvm || domain_selection_type != DOMAIN_SELECTION_DEFAULT) {
|
|
|
48c875 |
if (!self->priv->domkey) {
|
|
|
48c875 |
- g_printerr(_("\nNo DOMAIN-NAME|ID|UUID was specified for '%s'\n\n"),
|
|
|
48c875 |
+ g_printerr(_("\nNo ID|UUID|DOMAIN-NAME was specified for '%s'\n\n"),
|
|
|
48c875 |
opt_waitvm ? "--wait" : domain_selection_to_opt[domain_selection_type]);
|
|
|
48c875 |
ret = TRUE;
|
|
|
48c875 |
*status = 1;
|
|
|
48c875 |
--
|
|
|
48c875 |
2.12.0
|
|
|
48c875 |
|