[pacman-dev] [PATCH] Restore usage line for -Fh
Allan McRae
allan at archlinux.org
Thu Nov 26 12:02:33 UTC 2020
On 26/11/20 6:53 am, Colin Woodbury wrote:
> 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);
This gives:
usage: pacman {-F --files} [options] [package(s)]
but "pacman -F" also takes file paths or regex as an argument, not just
package names.
> + 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"));
>
More information about the pacman-dev
mailing list