diff options
author | EuAndreh <eu@euandre.org> | 2023-07-29 08:52:48 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-07-29 08:52:48 -0300 |
commit | cef76cd1b0ae32ba1d9733c9d09d62de24559743 (patch) | |
tree | 8922a05e83d3b1ea2e98660ed843606ee8046853 | |
parent | etc/sh/rc: When X is available, set the keyboard "Insert" key (diff) | |
download | dotfiles-cef76cd1b0ae32ba1d9733c9d09d62de24559743.tar.gz dotfiles-cef76cd1b0ae32ba1d9733c9d09d62de24559743.tar.xz |
bin/*: Add matching parenthesis to case clauses
-rwxr-xr-x | bin/80 | 10 | ||||
-rwxr-xr-x | bin/archiveit | 10 | ||||
-rwxr-xr-x | bin/assert-arg | 10 | ||||
-rwxr-xr-x | bin/aux | 10 | ||||
-rwxr-xr-x | bin/backup | 12 | ||||
-rwxr-xr-x | bin/bins | 10 | ||||
-rwxr-xr-x | bin/boop | 16 | ||||
-rwxr-xr-x | bin/check | 10 | ||||
-rwxr-xr-x | bin/clamp | 10 | ||||
-rwxr-xr-x | bin/color | 12 | ||||
-rwxr-xr-x | bin/copy | 12 | ||||
-rwxr-xr-x | bin/dice | 10 | ||||
-rwxr-xr-x | bin/e | 10 | ||||
-rwxr-xr-x | bin/email | 14 | ||||
-rwxr-xr-x | bin/forever | 12 | ||||
-rwxr-xr-x | bin/free-port | 10 | ||||
-rwxr-xr-x | bin/gc | 10 | ||||
-rwxr-xr-x | bin/gen-password | 10 | ||||
-rwxr-xr-x | bin/git-cleanup | 10 | ||||
-rwxr-xr-x | bin/grun | 12 | ||||
-rwxr-xr-x | bin/highlight | 16 | ||||
-rwxr-xr-x | bin/htmlesc | 14 | ||||
-rwxr-xr-x | bin/httpno | 10 | ||||
-rwxr-xr-x | bin/ifnew | 12 | ||||
-rwxr-xr-x | bin/lc | 10 | ||||
-rwxr-xr-x | bin/lines | 10 | ||||
-rwxr-xr-x | bin/max | 10 | ||||
-rwxr-xr-x | bin/menu | 10 | ||||
-rwxr-xr-x | bin/min | 10 | ||||
-rwxr-xr-x | bin/mkdtemp | 10 | ||||
-rwxr-xr-x | bin/mkstemp | 10 | ||||
-rwxr-xr-x | bin/mnt | 10 | ||||
-rwxr-xr-x | bin/msg | 16 | ||||
-rwxr-xr-x | bin/n-times | 10 | ||||
-rwxr-xr-x | bin/ootb | 10 | ||||
-rwxr-xr-x | bin/open | 12 | ||||
-rwxr-xr-x | bin/player | 10 | ||||
-rwxr-xr-x | bin/playlist | 10 | ||||
-rwxr-xr-x | bin/pre | 12 | ||||
-rwxr-xr-x | bin/print | 14 | ||||
-rwxr-xr-x | bin/prompt | 10 | ||||
-rwxr-xr-x | bin/qr | 12 | ||||
-rwxr-xr-x | bin/re | 10 | ||||
-rwxr-xr-x | bin/reconfigure | 10 | ||||
-rwxr-xr-x | bin/record-my-screen | 10 | ||||
-rwxr-xr-x | bin/repos | 14 | ||||
-rwxr-xr-x | bin/rfc | 14 | ||||
-rwxr-xr-x | bin/serve | 14 | ||||
-rwxr-xr-x | bin/shesc | 10 | ||||
-rwxr-xr-x | bin/shot | 12 | ||||
-rwxr-xr-x | bin/slugify | 10 | ||||
-rwxr-xr-x | bin/stopwatch | 10 | ||||
-rwxr-xr-x | bin/tmp | 12 | ||||
-rwxr-xr-x | bin/tmpname | 10 | ||||
-rwxr-xr-x | bin/tuivid | 10 | ||||
-rwxr-xr-x | bin/uc | 10 | ||||
-rwxr-xr-x | bin/uninclude | 10 | ||||
-rwxr-xr-x | bin/untill | 14 | ||||
-rwxr-xr-x | bin/update | 10 | ||||
-rwxr-xr-x | bin/uuid | 10 | ||||
-rwxr-xr-x | bin/vcs | 14 | ||||
-rwxr-xr-x | bin/vm | 22 | ||||
-rwxr-xr-x | bin/volume | 10 | ||||
-rwxr-xr-x | bin/without-env | 10 | ||||
-rwxr-xr-x | bin/wms | 10 | ||||
-rwxr-xr-x | bin/yt | 14 |
66 files changed, 374 insertions, 374 deletions
@@ -39,27 +39,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/archiveit b/bin/archiveit index a7b5a08..01ba458 100755 --- a/bin/archiveit +++ b/bin/archiveit @@ -32,27 +32,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/assert-arg b/bin/assert-arg index 477a571..bc376b7 100755 --- a/bin/assert-arg +++ b/bin/assert-arg @@ -31,27 +31,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -40,27 +40,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -52,15 +52,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -69,18 +69,18 @@ VERBOSE_FLAGS='--verbose --progress' COMMENT='' while getopts 'qC:h' flag; do case "$flag" in - q) + (q) VERBOSE_FLAGS='' ;; C) COMMENT="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -34,15 +34,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -53,12 +53,12 @@ while getopts 'Fh' flag; do F) FORCE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -38,15 +38,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -55,21 +55,21 @@ SOUND=-s SILENT=false while getopts 'm:nxh' flag; do case "$flag" in - m) + (m) MESSAGE="$OPTARG" ;; - n) + (n) SOUND= ;; - x) + (x) SILENT=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -37,27 +37,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -47,27 +47,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -169,15 +169,15 @@ list_colors() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -185,7 +185,7 @@ done COLOR_FN='' while getopts 'c:h' flag; do case "$flag" in - c) + (c) EXISTS=false for c in $COLOR_LIST; do if [ "$OPTARG" = "$c" ]; then @@ -199,12 +199,12 @@ while getopts 'c:h' flag; do fi COLOR_FN="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -36,15 +36,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -52,15 +52,15 @@ done TRIM=false while getopts 'nh' flag; do case "$flag" in - n) + (n) TRIM=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -41,27 +41,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -40,27 +40,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -40,15 +40,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -57,18 +57,18 @@ FROM='eu@euandre.org' SUBJECT='CLI email: No subject' while getopts 'f:s:h' flag; do case "$flag" in - f) + (f) FROM="$OPTARG" ;; - s) + (s) SUBJECT="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/forever b/bin/forever index aad2a29..c323086 100755 --- a/bin/forever +++ b/bin/forever @@ -34,15 +34,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -50,15 +50,15 @@ done QUIET=false while getopts 'qh' flag; do case "$flag" in - q) + (q) QUIET=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/free-port b/bin/free-port index 1c2af61..30ed0ff 100755 --- a/bin/free-port +++ b/bin/free-port @@ -32,27 +32,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -42,27 +42,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/gen-password b/bin/gen-password index 07ed9ab..758845c 100755 --- a/bin/gen-password +++ b/bin/gen-password @@ -39,27 +39,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/git-cleanup b/bin/git-cleanup index f09fe9f..6a86d14 100755 --- a/bin/git-cleanup +++ b/bin/git-cleanup @@ -38,27 +38,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -45,30 +45,30 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'rh' flag; do case "$flag" in - r) + (r) RECIPIENTS_FLAG="${RECIPIENTS_FLAG:-} -r $OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/highlight b/bin/highlight index 70cf5ff..cefd37d 100755 --- a/bin/highlight +++ b/bin/highlight @@ -40,36 +40,36 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'n:e:f:h' flag; do case "$flag" in - n) + (n) LINE_NUMBER="$OPTARG" ;; - e) + (e) PATTERN="$OPTARG" ;; - f) + (f) FILENAME="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/htmlesc b/bin/htmlesc index 436ed54..5f3694f 100755 --- a/bin/htmlesc +++ b/bin/htmlesc @@ -43,15 +43,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -60,18 +60,18 @@ ENCODE=false DECODE=false while getopts 'edh' flag; do case "$flag" in - e) + (e) ENCODE=true ;; - d) + (d) DECODE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -53,27 +53,27 @@ DATA() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -55,15 +55,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -71,15 +71,15 @@ done VERBOSE=false while getopts 'vh' flag; do case "$flag" in - v) + (v) VERBOSE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -39,27 +39,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -41,27 +41,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -51,27 +51,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -44,27 +44,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -51,27 +51,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/mkdtemp b/bin/mkdtemp index 9c5f8c8..8e5fb48 100755 --- a/bin/mkdtemp +++ b/bin/mkdtemp @@ -31,27 +31,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/mkstemp b/bin/mkstemp index ded9837..2c0cdbc 100755 --- a/bin/mkstemp +++ b/bin/mkstemp @@ -31,27 +31,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -35,15 +35,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -53,12 +53,12 @@ while getopts 'U:h' flag; do U) UUID="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -45,15 +45,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -86,7 +86,7 @@ while getopts '01XsSmDbh' flag; do XMPP=true ACTION_DONE=true ;; - s) + (s) SOUND=true ACTION_DONE=true ;; @@ -94,7 +94,7 @@ while getopts '01XsSmDbh' flag; do SPEAK=true ACTION_DONE=true ;; - m) + (m) MAIL=true ACTION_DONE=true ;; @@ -102,16 +102,16 @@ while getopts '01XsSmDbh' flag; do DESKTOP=true ACTION_DONE=true ;; - b) + (b) BELL=true ACTION_DONE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/n-times b/bin/n-times index 660b734..9a693ce 100755 --- a/bin/n-times +++ b/bin/n-times @@ -33,27 +33,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -63,27 +63,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -38,27 +38,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -103,7 +103,7 @@ for f in "$@"; do mailto:*) alot compose "$f" ;; - *) + (*) DIR="$(cd -- "$(dirname -- "$0")"; pwd)" CMD="$(without-env PATH "$DIR" -- command -v xdg-open)" "$CMD" "$f" @@ -45,27 +45,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'P:h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/playlist b/bin/playlist index ebe0902..bfb609e 100755 --- a/bin/playlist +++ b/bin/playlist @@ -39,27 +39,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -38,15 +38,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -54,15 +54,15 @@ done COLOR='' while getopts 'c:h' flag; do case "$flag" in - c) + (c) COLOR="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -94,15 +94,15 @@ main() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -111,10 +111,10 @@ QUALITY_SET=false DUPLEX= while getopts 'dq:h' flag; do case "$flag" in - d) + (d) DUPLEX=1 ;; - q) + (q) QUALITY_SET=true case "$OPTARG" in low) @@ -132,12 +132,12 @@ while getopts 'dq:h' flag; do ;; esac ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -36,27 +36,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -36,15 +36,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -52,15 +52,15 @@ done PIXEL_SIZE=10 while getopts 's:h' flag; do case "$flag" in - s) + (s) PIXEL_SIZE="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -43,27 +43,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/reconfigure b/bin/reconfigure index ca38cb1..daed9b7 100755 --- a/bin/reconfigure +++ b/bin/reconfigure @@ -40,15 +40,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -59,12 +59,12 @@ while getopts 'Uh' flag; do U) UPDATE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/record-my-screen b/bin/record-my-screen index 8b8a525..347fd7a 100755 --- a/bin/record-my-screen +++ b/bin/record-my-screen @@ -32,27 +32,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -41,15 +41,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -102,7 +102,7 @@ EXCLUDE= VERBOSE=false while getopts 'e:vh' flag; do case "$flag" in - e) + (e) case "$OPTARG" in */) ARG="$OPTARG" @@ -113,15 +113,15 @@ while getopts 'e:vh' flag; do esac EXCLUDE="$(arr_push "$EXCLUDE" "$ARG")" ;; - v) + (v) VERBOSE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -92,33 +92,33 @@ check_local_db() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'wuh' flag; do case "$flag" in - w) + (w) WHERE=true ;; - u) + (u) UPDATE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -40,15 +40,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -57,18 +57,18 @@ DIRECTORY='.' PORT="$(free-port)" while getopts 'd:p:h' flag; do case "$flag" in - d) + (d) DIRECTORY="$OPTARG" ;; - p) + (p) PORT="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -41,27 +41,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -40,15 +40,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -56,15 +56,15 @@ done OPTS= while getopts 'mh' flag; do case "$flag" in - m) + (m) OPTS='-s' ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/slugify b/bin/slugify index 834e4bc..f4a4d8b 100755 --- a/bin/slugify +++ b/bin/slugify @@ -37,27 +37,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 esac diff --git a/bin/stopwatch b/bin/stopwatch index 14182d2..88c5848 100755 --- a/bin/stopwatch +++ b/bin/stopwatch @@ -32,27 +32,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -39,15 +39,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -56,17 +56,17 @@ REMOTE='euandre.org' DIR='/srv/www/tmp' while getopts 'dh' flag; do case "$flag" in - d) + (d) printf 'Deleting %s:%s...\n' "$REMOTE" "$DIR/" >&2 ssh "$REMOTE" rm -rf "$DIR"/* exit ;; - h) + (h) usage help exit ;; - *) + (*) exit 2 ;; esac diff --git a/bin/tmpname b/bin/tmpname index ea3f0aa..5b732a5 100755 --- a/bin/tmpname +++ b/bin/tmpname @@ -36,27 +36,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -34,27 +34,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -39,27 +39,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/uninclude b/bin/uninclude index 812f51b..ce8b633 100755 --- a/bin/uninclude +++ b/bin/uninclude @@ -43,15 +43,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -61,12 +61,12 @@ while getopts 'E:h' flag; do E) REGEXP="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -43,15 +43,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -59,18 +59,18 @@ done _SECONDS=5 while getopts 'm:n:h' flag; do case "$flag" in - m) + (m) MAX="$OPTARG" ;; - n) + (n) _SECONDS="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -35,27 +35,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -31,27 +31,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -214,15 +214,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -232,24 +232,24 @@ while getopts 'C:lth' flag; do C) cd "$OPTARG" ;; - l) + (l) # shellcheck disable=2086 echo $TYPES | tr ' ' '\n' exit ;; - t) + (t) guess_type "$PWD" || { printf 'Could not guess the type of the repository.\n' >&2 exit 2 } exit ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 esac @@ -95,15 +95,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -120,31 +120,31 @@ while getopts 'Gi:m:np:Svh' flag; do G) GRAPHICS=true ;; - i) + (i) IMAGE="$OPTARG" ;; - m) + (m) MEMORY="$OPTARG" ;; - n) + (n) DRY_RUN=true VERBOSE=true ;; - p) + (p) PORTMAPS="$PORTMAPS $OPTARG" ;; S) SNAPSHOT=false ;; - v) + (v) VERBOSE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -186,7 +186,7 @@ guess_arch() { amd64) printf 'x86_64' ;; - *) + (*) printf '%s' "$NAME" ;; esac @@ -46,27 +46,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; diff --git a/bin/without-env b/bin/without-env index 4e7ed15..99fe884 100755 --- a/bin/without-env +++ b/bin/without-env @@ -42,27 +42,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -38,27 +38,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -44,15 +44,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -60,18 +60,18 @@ done PLAYLIST_COUNT=15 while getopts 'fn:h' flag; do case "$flag" in - f) + (f) FORCE=1 ;; - n) + (n) PLAYLIST_COUNT="$OPTARG" ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; |