#!/bin/bash

__contains_word () {
		local w word=$1; shift
		for w in "$@"; do
				[[ $w = "$word" ]] && return
		done
}

_voxl_vtx(){

	local OPTS=('--help --test --engineering-mode --initial-power')
	local OPTS_SHORT=('-h -t -e -i')

	COMPREPLY=()
	if [ "$COMP_CWORD" -eq 1 ]; then
		COMPREPLY=( $(compgen -W '${OPTS}' -- ${COMP_WORDS[COMP_CWORD]}) )
		return 0
	fi

}

complete -F _voxl_vtx voxl-vtx
