Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Dec 2023 23:55:42 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b3ab6b502910 - main - ncal(1): print the correct option name when -B is specified twice
Message-ID:  <202312262355.3BQNtgeT000962@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312262355.3BQNtgeT000962>