con_opt::__con_lib2rst_completion()
{
	COMPREPLY=()

	local cur="${COMP_WORDS[COMP_CWORD]}" prev="" pprev=""
	[ ${COMP_CWORD} -lt 1 ] || prev=${COMP_WORDS[COMP_CWORD-1]}
	[ ${COMP_CWORD} -lt 2 ] || pprev=${COMP_WORDS[COMP_CWORD-2]}

	case ${pprev} in
	# Sub commands: 'group sub'

	*)
		# Some other non command arg
		case ${prev} in
			# Options

			# Commands: 'command'

			# Initial arg
			*)
				COMPREPLY=( $(compgen -W " -h -v -q -V -B -A -K -S -P -a -d -c -n -s -g $(compgen -A file)" -- "${cur}") )
				;;
		esac
	esac
} &&
complete -F con_opt::__con_lib2rst_completion "con-lib2rst" &&
printf "Completion added: %s (%s).\n" "con-lib2rst" "con_opt::__con_lib2rst_completion" >&2
