Re: pkg: invalid option --, and pkg: illegal option --

From: Ed Maste <emaste_at_freebsd.org>
Date: Mon, 05 May 2025 16:45:19 UTC
On Sun, 4 May 2025 at 02:13, Kevin Oberman <rkoberman@gmail.com> wrote:
>
> It is definitely  be61deae0aa2 and it is cosmetic. be61deae0aa2 changes the parser in the base system. It results in all options generating the error, but they are passed to the sub-program (info, version, delete, etc), so they are just annoying. As I mentioned, "alias pkg /usr/local/sbin/pkg" works around the issue. Hopefully it will be resolved soon.

Apologies for the breakage and thanks for providing these details and
workaround for folks. I've now merged Isaac's fix
(73ba568b1c35aabc1682540b5b4d5d77220c5468).