Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff sbin/fports @ 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 | a59cc4bea000 |
line wrap: on
line diff
--- 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
