mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
8ee395d843
commit
1d7ce1c071
@ -180,7 +180,7 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
struct option opt[] = {
|
struct option opt[] = {
|
||||||
{ "help", no_argument, NULL, 'h' },
|
{ "help", no_argument, NULL, 'h' },
|
||||||
{ "version", optional_argument, NULL, 'V' },
|
{ "version", no_argument, NULL, 'V' },
|
||||||
{ NULL, 0, NULL, 0 },
|
{ NULL, 0, NULL, 0 },
|
||||||
};
|
};
|
||||||
if (virInitialize() < 0) {
|
if (virInitialize() < 0) {
|
||||||
|
@ -62,7 +62,7 @@ main(int argc,
|
|||||||
|
|
||||||
struct option opt[] = {
|
struct option opt[] = {
|
||||||
{ "help", no_argument, NULL, 'h' },
|
{ "help", no_argument, NULL, 'h' },
|
||||||
{ "version", optional_argument, NULL, 'v' },
|
{ "version", no_argument, NULL, 'v' },
|
||||||
{ NULL, 0, NULL, 0 },
|
{ NULL, 0, NULL, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user