Recent changes to pkg argument parsing (https://reviews.freebsd.org/D49977)

From: Dan Mahoney (Ports) <freebsd_at_gushi.org>
Date: Tue, 06 May 2025 08:18:26 UTC
All,

I just joined the list and can't figure out how to reply to Graham's emails of a few days ago.

Since this change, I'm also finding cases where regular pkg arguments are being warned about (but still work).

For example, we've got a cron job on every box that gathers all our leaf packages into a file:

#!/bin/sh
/usr/sbin/pkg query -e '%#r == 0' '%n-%v'

We now get warnings:

# /usr/local/libexec/pkgleaf
pkg: invalid option -- e

(but the query still runs).

Has anyone else seen this?

-Dan