tools: drop unused --version argument

These tools never supported passing an argument to --version, this is
a copy+paste mistake from virsh, which did support an argument.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2024-06-07 10:57:16 +01:00
parent 8ee395d843
commit 1d7ce1c071
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ main(int argc, char **argv)
struct option opt[] = {
{ "help", no_argument, NULL, 'h' },
{ "version", optional_argument, NULL, 'V' },
{ "version", no_argument, NULL, 'V' },
{ NULL, 0, NULL, 0 },
};
if (virInitialize() < 0) {

View File

@ -62,7 +62,7 @@ main(int argc,
struct option opt[] = {
{ "help", no_argument, NULL, 'h' },
{ "version", optional_argument, NULL, 'v' },
{ "version", no_argument, NULL, 'v' },
{ NULL, 0, NULL, 0 },
};