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

Colin Woodbury colin at fosskers.ca
Thu Nov 26 15:45:05 UTC 2020


> but "pacman -F" also takes file paths or regex as an argument, not just
> package names.

It does, yeah. In this case I was going off what `pacman -h` displays for `-F`, which is just `[packages]`. Should I update both `-h` and `-Fh`, or just the latter?

On Thu, 26 Nov 2020, at 04:02, Allan McRae wrote:
> 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