[virt-tools-list] [PATCH virt-viewer 1/3] man: document usage of domain name as optional
Pavel Grunt
pgrunt at redhat.com
Tue Apr 14 12:08:02 UTC 2015
related: rhbz#1211573
---
man/virt-viewer.pod | 6 +++++-
src/virt-viewer-main.c | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/man/virt-viewer.pod b/man/virt-viewer.pod
index e976c69..50f08a7 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] [DOMAIN-NAME|ID|UUID]
=head1 DESCRIPTION
@@ -157,6 +157,10 @@ To connect to the guest called 'demo' running under Xen
virt-viewer demo
+To connect to a guest running under QEMU using gui
+
+ virt-viewer --connect qemu:///system
+
To connect to the guest with ID 7 running under QEMU
virt-viewer --connect qemu:///system 7
diff --git a/src/virt-viewer-main.c b/src/virt-viewer-main.c
index 75de7c6..8c1ca80 100644
--- a/src/virt-viewer-main.c
+++ b/src/virt-viewer-main.c
@@ -104,7 +104,7 @@ int main(int argc, char **argv)
g_option_context_free(context);
if (args && (g_strv_length(args) != 1)) {
- g_printerr(_("\nUsage: %s [OPTIONS] DOMAIN-NAME|ID|UUID\n\n%s\n\n"), argv[0], help_msg);
+ g_printerr(_("\nUsage: %s [OPTIONS] [DOMAIN-NAME|ID|UUID]\n\n%s\n\n"), argv[0], help_msg);
goto cleanup;
}
--
2.3.5
More information about the virt-tools-list
mailing list