From be7552f77f537b367da56891a12a2e93143f00c5 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Tue, 16 Jul 2024 21:03:33 -0700 Subject: [PATCH] rename `-A` flag to `-m` for manual in `permit` --- sh/permit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sh/permit b/sh/permit index cab7aeb..cc6bf6a 100755 --- a/sh/permit +++ b/sh/permit @@ -14,7 +14,7 @@ permit() { ### @- conditionally set executable permissions on each of its argume ### flags: ### * `-a` -- automatic: skip any files whose contents do not begin with ### with one of several signatures. this does not affect directories. - ### * `-A` -- turn off automatic mode. (default) + ### * `-m` -- manual: turn off automatic mode. (default) ### * `-e` -- everything: consider both regular files and directories. (default) ### * `-f` -- files: skip any arguments that are not regular files. ### * `-d` -- directories: skip any arguments that are not directories. @@ -27,7 +27,7 @@ permit() { ### @- conditionally set executable permissions on each of its argume ### directories are never recursed. unset __permit_4 __permit_a __permit_f __permit_h __permit_m __permit_n __permit_v __permit_x || return - __permit_h="[-v] [-n] [-a | -A] [-e | -f | -d] [--] {files...}" + __permit_h="[-v] [-n] [-a | -m] [-e | -f | -d] [--] {files...}" if [ $# = 0 ]; then printf >&2 'usage: permit %s\n' "$__permit_h" return 64; @@ -53,8 +53,8 @@ permit() { ### @- conditionally set executable permissions on each of its argume (v*) __permit_v=1;; # verbosity (n*) __permit_n=1;; # dry-run - (a*) __permit_a=1;; # automatic (on) - (A*) __permit_a=0;; # automatic (off) + (a*) __permit_a=1;; # automatic + (m*) __permit_a=0;; # manual (e*) __permit_m=e;; # everything (f*) __permit_m=f;; # files only (d*) __permit_m=d;; # directories only