Vim: Fix bash template getopts args

This commit is contained in:
Salt 2020-02-23 01:12:49 -06:00
parent 2564550113
commit d5917c8279

View File

@ -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"