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>
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) {
struct option opt[] = {
{ "help", no_argument, NULL, 'h' },
- { "version", optional_argument, NULL, 'v' },
+ { "version", no_argument, NULL, 'v' },
{ NULL, 0, NULL, 0 },
};