Add -- to seperate program arguments to server in man / --help

Since some of the arguments are expecting following value, make it more
explicit in the man and --help that -- can seperate options from server
name or location.

https://bugzilla.redhat.com/show_bug.cgi?id=843103
This commit is contained in:
Marc-André Lureau 2013-05-09 15:52:55 +02:00
parent fdaa9b0ca8
commit 9b1ad0b118
4 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ remote-viewer - a simple remote desktop client
=head1 SYNOPSIS
B<remote-viewer> [OPTIONS] URI
B<remote-viewer> [OPTIONS] -- URI
=head1 DESCRIPTION

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

View File

@ -228,7 +228,7 @@ main(int argc, char **argv)
{ "hotkeys", 'h', 0, G_OPTION_ARG_STRING, &hotkeys,
N_("Customise hotkeys"), NULL },
{ G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_STRING_ARRAY, &args,
NULL, "URI" },
NULL, "-- URI" },
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};

View File

@ -84,7 +84,7 @@ int main(int argc, char **argv)
{ "hotkeys", 'h', 0, G_OPTION_ARG_STRING, &hotkeys,
N_("Customise hotkeys"), NULL },
{ G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_STRING_ARRAY, &args,
NULL, "DOMAIN-NAME|ID|UUID" },
NULL, "-- DOMAIN-NAME|ID|UUID" },
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};