mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
virsh: Don't print extra '-'s in error message for -k and -K options
The error message contains one extra dash.
This commit is contained in:
parent
cf389258ae
commit
b470a38fa9
@ -3472,7 +3472,7 @@ vshParseArgv(vshControl *ctl, int argc, char **argv)
|
|||||||
case 'k':
|
case 'k':
|
||||||
if (virStrToLong_i(optarg, NULL, 0, &keepalive) < 0 ||
|
if (virStrToLong_i(optarg, NULL, 0, &keepalive) < 0 ||
|
||||||
keepalive < 0) {
|
keepalive < 0) {
|
||||||
vshError(ctl, _("option -%s requires a positive numeric argument"),
|
vshError(ctl, _("option %s requires a positive numeric argument"),
|
||||||
longindex == -1 ? "-k" : "--keepalive-interval");
|
longindex == -1 ? "-k" : "--keepalive-interval");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
@ -3481,7 +3481,7 @@ vshParseArgv(vshControl *ctl, int argc, char **argv)
|
|||||||
case 'K':
|
case 'K':
|
||||||
if (virStrToLong_i(optarg, NULL, 0, &keepalive) < 0 ||
|
if (virStrToLong_i(optarg, NULL, 0, &keepalive) < 0 ||
|
||||||
keepalive < 0) {
|
keepalive < 0) {
|
||||||
vshError(ctl, _("option -%s requires a positive numeric argument"),
|
vshError(ctl, _("option %s requires a positive numeric argument"),
|
||||||
longindex == -1 ? "-K" : "--keepalive-count");
|
longindex == -1 ? "-K" : "--keepalive-count");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user