# /usr/share/bash-completion/completions/licensecheck
# Bash command completion for ‘licensecheck(1)’.
# Documentation: ‘bash(1)’, section “Programmable Completion”.

# Copyright © 2015, Nicholas Bamber <nicholas@periapt.co.uk>

_licensecheck()
{
    local cur prev words cword i _options special _prefix
    _init_completion || return

    case $prev in
        --tail)
            COMPREPLY=( $( compgen -W '0 1000 2000 3000' -- "$cur" ) )
            return 0
            ;;
        --lines)
            COMPREPLY=( $( compgen -W '120 200 300 400' -- "$cur" ) )
            return 0
            ;;
    esac

    if [[ "$cur" == -* ]]; then
        _options='--verbose --no-verbose --lines --ignore --recursive --tail --check --copyright --machine --skipped'
        COMPREPLY=( $( compgen -W "${_options}" -- "$cur" ) )
    else
        COMPREPLY=( $( compgen -o filenames -f -- "$cur" ) )
    fi

    return 0
} &&
complete -F _licensecheck licensecheck


# Local variables:
# coding: utf-8
# mode: shell-script
# indent-tabs-mode: nil
# End:
# vim: fileencoding=utf-8 filetype=sh expandtabs shiftwidth=4 :