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:
parent
fd4fafa873
commit
b3ab6b5029
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user