[virt-tools-list] [PATCH virt-viewer 2/2] virt-viewer: Adjust name-id-uuid comment
Pavel Grunt
pgrunt at redhat.com
Fri Feb 24 14:57:24 UTC 2017
virt-viewer by default chooses the VM by its id, then uuid
and then by name. Adjust the comment to match the implementation.
Related: rhbz#1399077
---
man/virt-viewer.pod | 2 +-
src/virt-viewer.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/man/virt-viewer.pod b/man/virt-viewer.pod
index 30af8db..8463eb4 100644
--- a/man/virt-viewer.pod
+++ b/man/virt-viewer.pod
@@ -5,7 +5,7 @@ virt-viewer - display the graphical console for a virtual machine
=head1 SYNOPSIS
-B<virt-viewer> [OPTIONS] [DOMAIN-NAME|ID|UUID]
+B<virt-viewer> [OPTIONS] [ID|UUID|DOMAIN-NAME]
=head1 DESCRIPTION
diff --git a/src/virt-viewer.c b/src/virt-viewer.c
index 6bc9b6d..e6dd476 100644
--- a/src/virt-viewer.c
+++ b/src/virt-viewer.c
@@ -143,7 +143,7 @@ virt_viewer_add_option_entries(VirtViewerApp *self, GOptionContext *context, GOp
{ "uuid", '\0', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, opt_domain_selection_cb,
N_("Select the virtual machine only by its uuid"), NULL },
{ G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_STRING_ARRAY, &opt_args,
- NULL, "-- DOMAIN-NAME|ID|UUID" },
+ NULL, "-- ID|UUID|DOMAIN-NAME" },
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};
@@ -160,7 +160,7 @@ virt_viewer_local_command_line (GApplication *gapp,
gboolean ret = FALSE;
VirtViewer *self = VIRT_VIEWER(gapp);
VirtViewerApp *app = VIRT_VIEWER_APP(gapp);
- const gchar *missing_domkey_fmt = _("\nNo DOMAIN-NAME|ID|UUID was specified for '%s'\n\n");
+ const gchar *missing_domkey_fmt = _("\nNo ID|UUID|DOMAIN-NAME was specified for '%s'\n\n");
ret = G_APPLICATION_CLASS(virt_viewer_parent_class)->local_command_line(gapp, args, status);
if (ret)
@@ -168,7 +168,7 @@ virt_viewer_local_command_line (GApplication *gapp,
if (opt_args) {
if (g_strv_length(opt_args) != 1) {
- g_printerr(_("\nUsage: %s [OPTIONS] [DOMAIN-NAME|ID|UUID]\n\n"), PACKAGE);
+ g_printerr(_("\nUsage: %s [OPTIONS] [ID|UUID|DOMAIN-NAME]\n\n"), PACKAGE);
ret = TRUE;
*status = 1;
goto end;
--
2.11.1
More information about the virt-tools-list
mailing list