[Bug 288973] pkg-mgmt/pkg pkg-delete - SYNOPSIS is missing -f option

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 20 Aug 2025 07:32:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288973

            Bug ID: 288973
           Summary: pkg-mgmt/pkg pkg-delete - SYNOPSIS is missing -f
                    option
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: erichanskrs@gmail.com

On 14.3-RELEASE, using pkg v. 2.2.2, latest.

pkg-delete(8):
(A)
SYNOPSIS
       pkg delete [-DfnqRy] [-Cgix] pkg-name ...
       pkg delete [-Dnqy] -a

(B)
OPTIONS
[...]
-f, --force
           Forces packages to be removed despite leaving unresolved de-
           pendencies. In combination  with  the -a or --all flag,
           causes pkg(8) to be removed as well as all other packages.

(A) and (B) contradict each other.


It seems the SYNOPSIS should be:

SYNOPSIS
       pkg delete [-DfnqRy] [-Cgix] pkg-name ...
-      pkg delete [-Dnqy] -a
+      pkg delete [-Dfnqy] -a

Likewise for the SYNOPSIS describing the long options:

       pkg      delete      [--{no-scripts,force,dry-run,quiet,recursive,yes}]
           [--{case-sensitive,glob,case-insensitive,regex}] pkg-name ...
-       pkg delete [--{no-scripts,dry-run,quiet,yes}] --all
+       pkg delete [--{no-scripts,force,dry-run,quiet,yes}] --all

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