From d5917c82797e016b3836dc2333de20576077307f Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 23 Feb 2020 01:12:49 -0600 Subject: [PATCH] Vim: Fix bash template getopts args --- .vim/templates/=template=.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vim/templates/=template=.bash b/.vim/templates/=template=.bash index 4a6e4c00..55d5cf56 100644 --- a/.vim/templates/=template=.bash +++ b/.vim/templates/=template=.bash @@ -70,7 +70,7 @@ has() { # Core program functions printhelp() { cat << EOF -Usage: $_name [OPTION]... [FILE]... +Usage: $_name [OPTION]... -c [FILE] Load the given file in place of the usual config file -h Print this help text @@ -86,7 +86,7 @@ main() { # Parse out arguments while [ -n "$1" ]; do # Parse out flags - while getopts ":hv" opt; do + while getopts ":chv" opt; do case $opt in c) _optconfigfile="$OPTARG"