Vim: Fix bash template getopts args
This commit is contained in:
		@@ -70,7 +70,7 @@ has() {
 | 
				
			|||||||
# Core program functions
 | 
					# Core program functions
 | 
				
			||||||
printhelp() {
 | 
					printhelp() {
 | 
				
			||||||
	cat << EOF
 | 
						cat << EOF
 | 
				
			||||||
Usage: $_name [OPTION]... [FILE]...
 | 
					Usage: $_name [OPTION]...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  -c [FILE]		Load the given file in place of the usual config file
 | 
					  -c [FILE]		Load the given file in place of the usual config file
 | 
				
			||||||
  -h			Print this help text
 | 
					  -h			Print this help text
 | 
				
			||||||
@@ -86,7 +86,7 @@ main() {
 | 
				
			|||||||
	# Parse out arguments
 | 
						# Parse out arguments
 | 
				
			||||||
	while [ -n "$1" ]; do
 | 
						while [ -n "$1" ]; do
 | 
				
			||||||
		# Parse out flags
 | 
							# Parse out flags
 | 
				
			||||||
		while getopts ":hv" opt; do
 | 
							while getopts ":chv" opt; do
 | 
				
			||||||
			case $opt in
 | 
								case $opt in
 | 
				
			||||||
				c)
 | 
									c)
 | 
				
			||||||
					_optconfigfile="$OPTARG"
 | 
										_optconfigfile="$OPTARG"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user