Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 808:ab21dd56f99e
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".
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 05 Nov 2024 11:57:34 +0100 |
| parents | ed94334bc6f1 |
| children | 6cf3e1021862 |
| files | docs/man/man8/fports.rst sbin/fports |
| diffstat | 2 files changed, 17 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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
