# ZSH completion for t2wizard

_t2wizard() {
    #compdef t2wizard
    local opts=(
        '(-r -R)'{-i,-i}'[Interface to capture traffic from]:interface:_net_interfaces'
        '(-i -R)'{-r,-r}'[PCAP file to analyse]:file:_files'
        '(-i -r)'{-R,-R}'[List of PCAP files to analyse]:file:_files'
        '-0[Deactivates all plugins]'
        '-f[hashfactor]:Multiplication factor for hash table (int):'
        '-p[Load plugins from path instead of ~/.tranalyzer/plugins]:plugin folder:_files -/'
        '(- 1 *)'{-h,--help}'[Show help options and exit]'
    )
    _arguments -s -S "${opts[@]}"
}

compdef _t2wizard t2wizard
