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

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 26 Dec 2023 23:55:42 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=b3ab6b5029104c04697df40015add32f219671fa

commit b3ab6b5029104c04697df40015add32f219671fa
Author:     Daniel Tameling <tamelingdaniel@gmail.com>
AuthorDate: 2023-12-26 23:44:47 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-12-26 23:45:26 +0000

    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
---
 usr.bin/ncal/ncal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/ncal/ncal.c b/usr.bin/ncal/ncal.c
index 20d14b3a4bde..6f5e1e89bf93 100644
--- a/usr.bin/ncal/ncal.c
+++ b/usr.bin/ncal/ncal.c
@@ -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,