_nipap()
{
	local words
	local cur
	# set IFS to newline to handle tab completion for entries containing a space
	local IFS=$'\n'

	COMPREPLY=()
	_get_comp_words_by_ref -n : words cur

	if [[ ${#cur} -eq 0 ]]; then
		COMPREPLY=( $( helper-nipap ${words[@]} ''  ) )
	else
		COMPREPLY=( $( helper-nipap ${words[@]} ) )
	fi

	__ltrim_colon_completions "$cur"

	return;

}
# -o filenames helps us correctly escape spaces and similar in the COMPREPLY
complete -o filenames -F _nipap nipap
