man: document usage of domain name as optional

related: rhbz#1211573
This commit is contained in:
Pavel Grunt 2015-04-14 13:10:09 +02:00
parent 0443bd113f
commit 5fa7ef636e
2 changed files with 6 additions and 2 deletions

View File

@ -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 use GUI for connecting to a guest running under QEMU
virt-viewer --connect qemu:///system
To connect to the guest with ID 7 running under QEMU
virt-viewer --connect qemu:///system 7

View File

@ -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;
}