Vim: Fix bash template getopts args
This commit is contained in:
parent
2564550113
commit
d5917c8279
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user