[Bug 286510] pkgbase: make update-packages regressed after base be61deae0aa2

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 May 2025 22:13:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286510

rkoberman@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rkoberman@gmail.com

--- Comment #1 from rkoberman@gmail.com ---
This problem is in hte revised parsing of the command line. It appears to nr
reflect any functional change, but does result in a bogus error message for
each option on the command line that is not processed by the base option of
pkg. In other words, any command processed by a sub-command such as version or
info,

While the options are reported as invalid, they are passed to the subcommand
and properly executed.

A workaround is to alias "pkg" to "/usr/local/sbin/pkg", but this is clearly
not ideal.
# pkg version -vL=
pkg: invalid option -- v
pkg: invalid option -- L
pkg: invalid option -- =
libreoffice-25.2.2.2_1             <   needs updating (index has 25.2.3.2)
# alias pkg /usr/local/sbin/pkg
# pkg version -vL=
libreoffice-25.2.2.2_1             <   needs updating (index has 25.2.3.2)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.