client: fix -v option to not require argument

Reported-by: Bryan Christianson <bryan@whatroute.net>
Fixes: d622b222a9 ("chronyc: add wider output option")
This commit is contained in:
Miroslav Lichvar
2026-03-09 08:34:16 +01:00
parent 9fffb99466
commit 6d8b237fac

View File

@@ -3656,7 +3656,7 @@ main(int argc, char **argv)
optind = 1; optind = 1;
/* Parse short command-line options */ /* Parse short command-line options */
while ((opt = getopt(argc, argv, "+46acdef:h:mnNp:u:v:w")) != -1) { while ((opt = getopt(argc, argv, "+46acdef:h:mnNp:u:vw")) != -1) {
switch (opt) { switch (opt) {
case '4': case '4':
case '6': case '6':