[Bug 233304] ports-mgmt/pkg info -q package doesn't work

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 22 Jan 2025 14:02:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233304

--- Comment #5 from Baptiste Daroussin <bapt@FreeBSD.org> ---
the logic is inheritted from the historical behaviour of pkg_info and can be
revisited.

the logic as I understood when I had to implement it is:

pkg info <somthing> query if that thing exists, so it shows some output if yes
(and I mimic pkg_info output) and nothing not with the return error code 0 or
1. so if you add '-q' then you end up with no output at all and the same error
code

-o request an explicit information, so it always prints it, same for -f
-a do request everything to be printed.

again I can revisit this logic this is very simple code to change.

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