#!/bin/bash

# Put this file to /etc/bash_completion.d/argbash_ENDL_()# needed because of Argbash --> m4_ignore([
### START OF CODE GENERATED BY Argbash v2.10.0 one line above ###
# Argbash is a bash code generator used to get arguments parsing right.
# Argbash is FREE SOFTWARE, see https://argbash.io for more info

_argbash ()
{
	local cur prev opts base
	COMPREPLY=()
	cur="${COMP_WORDS[COMP_CWORD]}"
	prev="${COMP_WORDS[COMP_CWORD-1]}"
	all_long_opts="--output --in-place --type --library --strip --check-typos --commented --search --debug --help --version "
	all_short_opts="-o -i -t -c -I -h -v "
	case "$prev" in
		--type|-t)
			COMPREPLY=( $(compgen -W "bash-script posix-script manpage manpage-defs completion docopt" -- "${cur}") )
			return 0
			;;
		--strip)
			COMPREPLY=( $(compgen -W "none user-content all" -- "${cur}") )
			return 0
			;;
		--output|-o|--search|-I|--debug)
			COMPREPLY=( $(compgen -o bashdefault -o default -- "${cur}") )
			return 0
			;;
		*)
			case "$cur" in
				--*)
					COMPREPLY=( $(compgen -W "${all_long_opts}" -- "${cur}") )
					return 0
					;;
				-*)
					COMPREPLY=( $(compgen -W "${all_short_opts}" -- "${cur}") )
					return 0
					;;
				*)
					COMPREPLY=( $(compgen -o bashdefault -o default -- "${cur}") )
					return 0
					;;
			esac
	esac

}
complete -F _argbash argbash
### END OF CODE GENERATED BY Argbash (sortof) ### ])
