git: e9f8723c30fc - main - ldd: clarify format options
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Mar 2023 14:34:45 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=e9f8723c30fc390f1282f5286d57c090ed9e5925
commit e9f8723c30fc390f1282f5286d57c090ed9e5925
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-03-21 14:14:03 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-03-21 14:14:03 +0000
ldd: clarify format options
-f may be specified zero, one, or two times. Make this clear in the
usage.
Reviewed by: markj, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34733
---
usr.bin/ldd/ldd.1 | 4 ++--
usr.bin/ldd/ldd.c | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/usr.bin/ldd/ldd.1 b/usr.bin/ldd/ldd.1
index 47a7fff9f778..1e4ccf441c53 100644
--- a/usr.bin/ldd/ldd.1
+++ b/usr.bin/ldd/ldd.1
@@ -1,6 +1,6 @@
.\" $FreeBSD$
.\"
-.Dd August 28, 2021
+.Dd March 21, 2023
.Dt LDD 1
.Os
.Sh NAME
@@ -9,7 +9,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl a
-.Op Fl f Ar format
+.Op Fl f Ar format Op Fl f Ar format
.Ar program ...
.Sh DESCRIPTION
The
diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c
index 2cd2a4c72324..4f5555e34610 100644
--- a/usr.bin/ldd/ldd.c
+++ b/usr.bin/ldd/ldd.c
@@ -260,7 +260,8 @@ static void
usage(void)
{
- fprintf(stderr, "usage: ldd [-a] [-f format] program ...\n");
+ fprintf(stderr,
+ "usage: ldd [-a] [-f format [-f format]] program ...\n");
exit(1);
}