1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00

ncal(1): print the correct option name when -B is specified twice

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/911
This commit is contained in:
Daniel Tameling 2023-12-26 16:44:47 -07:00 committed by Warner Losh
parent fd4fafa873
commit b3ab6b5029

View File

@ -271,7 +271,7 @@ main(int argc, char *argv[])
break;
case 'B':
if (flag_before > 0)
errx(EX_USAGE, "Double -A specified");
errx(EX_USAGE, "Double -B specified");
flag_before = strtol(optarg, NULL, 10);
if (flag_before <= 0)
errx(EX_USAGE,