diff 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
line wrap: on
line diff
--- a/sbin/fports	Tue Oct 29 11:03:22 2024 +0100
+++ b/sbin/fports	Tue Oct 29 11:07:36 2024 +0100
@@ -21,7 +21,9 @@
 
 # shellcheck disable=SC2016    # no expansion
 USAGE='
-USAGE: fports [ GLOBAL-OPTIONS ] COMMAND [ COMMAND-OPTIONS ]
+USAGE: fports -h
+       fports -V
+       fports deptree [-l maxlevel] [-r] [-t] package...
 
 GLOBAL OPTIONS:
 
@@ -268,6 +270,7 @@
 
     printf '%s v%s\n' "${2}" "${3}"
 
+    # shellcheck disable=SC2034    # appears unused
     pkgnames=''
     farray_create pkgnames
     falist_keys pkgnames "$4"