pkg query --evaluate (was: pkg-query(8): unknown query format key: '%i')

From: Graham Perrin <grahamperrin_at_gmail.com>
Date: Tue, 15 Aug 2023 15:33:25 UTC
On 15/08/2023 08:30, Graham Perrin wrote:

> …
>
> <https://man.freebsd.org/cgi/man.cgi?query=pkg-query&sektion=8&manpath=freebsd-ports> 
>

I'm probably closer to understanding, but can't figure out how to find 
packages that have a particular string in their message.

For example:

% pkg query --evaluate '%m = me@forkbomb9.ch' %o
net-mgmt/netdata
% pkg query %M netdata
On install:
Quick start for local-only use:

1. sysrc netdata_enable="YES"
2. service netdata start
3. Go to http://localhost:19999/
4. <Optional> Connect to Netdata Cloud using the netdata-claim.sh script:
https://learn.netdata.cloud/docs/agent/claim#claiming-script

% pkg query --evaluate '%M ~ netdata' %o
%

Where the third command did not find a package with the phrase 'netdata' 
in its message, what am I doing wrong?