Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 807:ed94334bc6f1 | 808:ab21dd56f99e |
|---|---|
| 22 # shellcheck disable=SC2016 # no expansion | 22 # shellcheck disable=SC2016 # no expansion |
| 23 USAGE=' | 23 USAGE=' |
| 24 USAGE: fports -h|--help | 24 USAGE: fports -h|--help |
| 25 fports -V|--version | 25 fports -V|--version |
| 26 fports deptree [-l maxlevel|--maxlevel=maxlevel] [-r|--reverse] [-t|--list|--transitive] package... | 26 fports deptree [-l maxlevel|--maxlevel=maxlevel] [-r|--reverse] [-t|--list|--transitive] package... |
| 27 fports detail [-b|--nofreebsd|--no-freebsd] [-n|--noauto|--no-auto] [-m|--mapped] [package...] | 27 fports detail [-A] [-b|--nofreebsd|--no-freebsd] [-n|--noauto|--no-auto] [-m|--mapped] [package...] |
| 28 | 28 |
| 29 GLOBAL OPTIONS: | 29 GLOBAL OPTIONS: |
| 30 | 30 |
| 31 -V, --version Print the program name and version number to stdout and exit. | 31 -V, --version Print the program name and version number to stdout and exit. |
| 32 | 32 |
| 355 | 355 |
| 356 do_sort=no | 356 do_sort=no |
| 357 opt_nofreebsd=no | 357 opt_nofreebsd=no |
| 358 opt_noauto=no | 358 opt_noauto=no |
| 359 opt_mapped=no | 359 opt_mapped=no |
| 360 while getopts "bnm-:" opt; do | 360 while getopts "Abnm-:" opt; do |
| 361 postprocess_getopts_for_long "nm-:" opt "nofreebsd" "no-freebsd" "noauto" "no-auto" "mapped" "" | 361 postprocess_getopts_for_long "Abnm-:" opt "nofreebsd" "no-freebsd" "noauto" "no-auto" "mapped" "" |
| 362 case "${opt}" in | 362 case "${opt}" in |
| 363 A) | |
| 364 opt_nofreebsd=yes | |
| 365 opt_noauto=yes | |
| 366 opt_mapped=yes | |
| 367 do_sort=yes | |
| 368 ;; | |
| 363 b|nofreebsd|no-freebsd) | 369 b|nofreebsd|no-freebsd) |
| 364 # shellcheck disable=SC2034 # appears unused | 370 # shellcheck disable=SC2034 # appears unused |
| 365 opt_nofreebsd=yes | 371 opt_nofreebsd=yes |
| 366 do_sort=yes | 372 do_sort=yes |
| 367 ;; | 373 ;; |
