diff sbin/fports @ 801:8167b2a8b4fe

fports: Change option characters "-A" -> "-n" and "-M" -> "-m"
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 02 Nov 2024 16:28:55 +0100
parents 1c4d729963dc
children 31ff8e5efdd6
line wrap: on
line diff
--- a/sbin/fports	Fri Nov 01 02:20:56 2024 +0100
+++ b/sbin/fports	Sat Nov 02 16:28:55 2024 +0100
@@ -24,8 +24,8 @@
 USAGE: fports -h
        fports -V
        fports deptree [-l maxlevel] [-r] [-t] package...
-       fports detail -A
-       fports detail -M
+       fports detail -n
+       fports detail -m
        fports detail package...
 
 GLOBAL OPTIONS:
@@ -355,12 +355,12 @@
 
     opt_noauto=no
     opt_mapped=no
-    while getopts "AM" opt; do
+    while getopts "nm" opt; do
         case "${opt}" in
-            A)
+            n)
                 # shellcheck disable=SC2034     # appears unused
                 opt_noauto=yes;;
-            M)
+            m)
                 # shellcheck disable=SC2034     # appears unused
                 opt_mapped=yes;;
             \?)
@@ -373,9 +373,9 @@
     OPTIND=1
 
     if checkyesno opt_noauto || checkyesno opt_mapped; then
-        [ $# -gt 0 ] && fatal "${EX_USAGE}" "packages are now allowed for options -A or -M"
+        [ $# -gt 0 ] && fatal "${EX_USAGE}" "packages are now allowed for options -n or -m"
         if checkyesno opt_noauto && checkyesno opt_mapped; then
-            fatal "${EX_USAGE}" "cannot use -A and -M together"
+            fatal "${EX_USAGE}" "cannot use -n and -m together"
         fi
     fi