# HG changeset patch # User Franz Glasner # Date 1730804254 -3600 # Node ID ab21dd56f99e22ea6f2a9e9a6c0d09aecdaa9f53 # Parent ed94334bc6f14d09c649125a5d371470c0167f6e fports: Implement "fports detail -A" as a shortcut to "-b -n -m". While there fixed some "program" usage in the manpage. Also rename a bogus "options" directive to "option". diff -r ed94334bc6f1 -r ab21dd56f99e docs/man/man8/fports.rst --- a/docs/man/man8/fports.rst Tue Nov 05 11:18:52 2024 +0100 +++ b/docs/man/man8/fports.rst Tue Nov 05 11:57:34 2024 +0100 @@ -15,7 +15,7 @@ **fports deptree** [**-l** `maxlevel`\|\ **--maxlevel**\=\ `maxlevel`] [**-r**\|\ **--reverse**] [**-t**\|\ **--list**\|\ **--transitive**] `package` ... -**fports detail** [**-b**\|\ **--nofreebsd**\|\ **--no-freebsd**] [**-n**\|\ **--noauto**\|\ **--no-auto**] [**-m**\|\ **--mapped**] [`package` ...] +**fports detail** [**-A**] [**-b**\|\ **--nofreebsd**\|\ **--no-freebsd**] [**-n**\|\ **--noauto**\|\ **--no-auto**] [**-m**\|\ **--mapped**] [`package` ...] Description @@ -71,7 +71,7 @@ that depend on a given `package`. -**fports detail** [**-b**\|\ **--nofreebsd**\|\ **--no-freebsd**] [**-n**\|\ **--noauto**\|\ **--no-auto**] [**-m**\|\ **--mapped**] [`package` ...] +**fports detail** [**-A**] [**-b**\|\ **--nofreebsd**\|\ **--no-freebsd**] [**-n**\|\ **--noauto**\|\ **--no-auto**] [**-m**\|\ **--mapped**] [`package` ...] Print the status of all given or selected packages in the most detail possible. @@ -82,9 +82,13 @@ A package mapping is considered also if applicable. See :manpage:`package-mapping.conf(5)`. - .. program:: fports deptree + .. program:: fports detail + + .. option:: -A - .. options:: -b, --nofreebsd, --no-freebsd + Shorthand for using :option:`fports detail -b -n -m`. + + .. option:: -b, --nofreebsd, --no-freebsd Automatically select all packages that are *not* installed from the standard FreeBSD repository. diff -r ed94334bc6f1 -r ab21dd56f99e sbin/fports --- a/sbin/fports Tue Nov 05 11:18:52 2024 +0100 +++ b/sbin/fports Tue Nov 05 11:57:34 2024 +0100 @@ -24,7 +24,7 @@ USAGE: fports -h|--help fports -V|--version fports deptree [-l maxlevel|--maxlevel=maxlevel] [-r|--reverse] [-t|--list|--transitive] package... - fports detail [-b|--nofreebsd|--no-freebsd] [-n|--noauto|--no-auto] [-m|--mapped] [package...] + fports detail [-A] [-b|--nofreebsd|--no-freebsd] [-n|--noauto|--no-auto] [-m|--mapped] [package...] GLOBAL OPTIONS: @@ -357,9 +357,15 @@ opt_nofreebsd=no opt_noauto=no opt_mapped=no - while getopts "bnm-:" opt; do - postprocess_getopts_for_long "nm-:" opt "nofreebsd" "no-freebsd" "noauto" "no-auto" "mapped" "" + while getopts "Abnm-:" opt; do + postprocess_getopts_for_long "Abnm-:" opt "nofreebsd" "no-freebsd" "noauto" "no-auto" "mapped" "" case "${opt}" in + A) + opt_nofreebsd=yes + opt_noauto=yes + opt_mapped=yes + do_sort=yes + ;; b|nofreebsd|no-freebsd) # shellcheck disable=SC2034 # appears unused opt_nofreebsd=yes