Codebase list virt-viewer / 11d8676
virt-viewer: Adjust name-id-uuid comment 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 Pavel Grunt 7 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
44
55 =head1 SYNOPSIS
66
7 B<virt-viewer> [OPTIONS] [DOMAIN-NAME|ID|UUID]
7 B<virt-viewer> [OPTIONS] [ID|UUID|DOMAIN-NAME]
88
99 =head1 DESCRIPTION
1010
141141 { "uuid", '\0', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, opt_domain_selection_cb,
142142 N_("Select the virtual machine only by its uuid"), NULL },
143143 { G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_STRING_ARRAY, &opt_args,
144 NULL, "-- DOMAIN-NAME|ID|UUID" },
144 NULL, "-- ID|UUID|DOMAIN-NAME" },
145145 { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
146146 };
147147
165165
166166 if (opt_args) {
167167 if (g_strv_length(opt_args) != 1) {
168 g_printerr(_("\nUsage: %s [OPTIONS] [DOMAIN-NAME|ID|UUID]\n\n"), PACKAGE);
168 g_printerr(_("\nUsage: %s [OPTIONS] [ID|UUID|DOMAIN-NAME]\n\n"), PACKAGE);
169169 ret = TRUE;
170170 *status = 1;
171171 goto end;
177177
178178 if (opt_waitvm || domain_selection_type != DOMAIN_SELECTION_DEFAULT) {
179179 if (!self->priv->domkey) {
180 g_printerr(_("\nNo DOMAIN-NAME|ID|UUID was specified for '%s'\n\n"),
180 g_printerr(_("\nNo ID|UUID|DOMAIN-NAME was specified for '%s'\n\n"),
181181 opt_waitvm ? "--wait" : domain_selection_to_opt[domain_selection_type]);
182182 ret = TRUE;
183183 *status = 1;