_license_reconcile()
{
    local cur prev words cword _DC_FILE
    _init_completion || return

    case $prev in
        --copyright-file)
	     _DC_FILE=debian/copyright
	     if [[ -r $_DC_FILE && $_DC_FILE =~ ^$cur ]]
	     then
		COMPREPLY=( $_DC_FILE )
		return 0
	     fi
             _filedir
             return 0
             ;;
        --changelog-file)
	     _DC_FILE=debian/changelog
	     if [[ -r $_DC_FILE && $_DC_FILE =~ ^$cur ]]
	     then
		COMPREPLY=( $_DC_FILE )
		return 0
	     fi
             _filedir
             return 0
             ;;
        --config-file)
	     _DC_FILE=debian/license-reconcile.yml
	     if [[ -r $_DC_FILE && $_DC_FILE =~ ^$cur ]]
	     then
		COMPREPLY=( $_DC_FILE )
		return 0
	     fi
             _filedir
             return 0
             ;;
	--directory)
	     _filedir -d
	     return 0
             ;;
    esac

    if [[ "$cur" == -* ]]; then
        COMPREPLY=( $( compgen -W '--copyright-file --no-check-copyright
            --no-format-spec --quiet --suggest-stanzas --display-mapping --directory --filters
            --config-file --changelog-file' -- "$cur" ) )
    else
     	_filedir   
    fi

    return 0
}
complete -F _license_reconcile license-reconcile
