[pacman-dev] [PATCH] Restore usage line for -Fh

Colin Woodbury colin at fosskers.ca
Wed Nov 25 20:53:11 UTC 2020


Unlike the other main commands, -F was missing its top-level usage line in its
help output.

Signed-off-by: Colin Woodbury <colin at fosskers.ca>
---
 src/pacman/pacman.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index fefd3fa4..69e2e42a 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -176,6 +176,8 @@ static void usage(int op, const char * const myname)
 			printf("%s:  %s {-T --deptest} [%s] [%s]\n", str_usg, myname, str_opt, str_pkg);
 			printf("%s:\n", str_opt);
 		} else if(op == PM_OP_FILES) {
+			printf("%s:  %s {-F --files} [%s] [%s]\n", str_usg, myname, str_opt, str_pkg);
+			printf("%s:\n", str_opt);
 			addlist(_("  -l, --list           list the files owned by the queried package\n"));
 			addlist(_("  -q, --quiet          show less information for query and search\n"));
 			addlist(_("  -x, --regex          enable searching using regular expressions\n"));
-- 
2.29.2


More information about the pacman-dev mailing list