Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/fports @ 787:004c676c3415
fports: Improve script help "-h" somewhat
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 29 Oct 2024 11:07:36 +0100 |
| parents | b78815b47d5e |
| children | 7ca4a36e9e8d |
comparison
equal
deleted
inserted
replaced
| 786:b78815b47d5e | 787:004c676c3415 |
|---|---|
| 19 # shellcheck disable=SC2034 # VERSION appears unused | 19 # shellcheck disable=SC2034 # VERSION appears unused |
| 20 VERSION='@@VERSION@@' | 20 VERSION='@@VERSION@@' |
| 21 | 21 |
| 22 # shellcheck disable=SC2016 # no expansion | 22 # shellcheck disable=SC2016 # no expansion |
| 23 USAGE=' | 23 USAGE=' |
| 24 USAGE: fports [ GLOBAL-OPTIONS ] COMMAND [ COMMAND-OPTIONS ] | 24 USAGE: fports -h |
| 25 fports -V | |
| 26 fports deptree [-l maxlevel] [-r] [-t] package... | |
| 25 | 27 |
| 26 GLOBAL OPTIONS: | 28 GLOBAL OPTIONS: |
| 27 | 29 |
| 28 -V Print the program name and version number to stdout and exit | 30 -V Print the program name and version number to stdout and exit |
| 29 | 31 |
| 266 | 268 |
| 267 local pkgnames i n v | 269 local pkgnames i n v |
| 268 | 270 |
| 269 printf '%s v%s\n' "${2}" "${3}" | 271 printf '%s v%s\n' "${2}" "${3}" |
| 270 | 272 |
| 273 # shellcheck disable=SC2034 # appears unused | |
| 271 pkgnames='' | 274 pkgnames='' |
| 272 farray_create pkgnames | 275 farray_create pkgnames |
| 273 falist_keys pkgnames "$4" | 276 falist_keys pkgnames "$4" |
| 274 farray_sort pkgnames | 277 farray_sort pkgnames |
| 275 i=1 | 278 i=1 |
