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
1 changed files with 1 additions and 1 deletions

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,