From b3ab6b5029104c04697df40015add32f219671fa Mon Sep 17 00:00:00 2001 From: Daniel Tameling Date: Tue, 26 Dec 2023 16:44:47 -0700 Subject: [PATCH] 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 20d14b3a4bd..6f5e1e89bf9 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,