AUTHORS: Add Hisao Tanabe for his contribution
[netsniff-ng-new.git] / flowtop.zsh
blobc43074854368412c88259d3bc786fc33290b57a2
1 #compdef flowtop
3 # flowtop.zsh -- zsh completion function for flowtop
5 # Copyright (C) 2013 Hideo Hattori <hhatto.jp@gmail.com>
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License version 2 as
9 # published by the Free Software Foundation.
11 typeset -A opt_args
13 _arguments -s -S \
14 "(-4 --ipv4)"{-4,--ipv4}"[Show only IPv4 flows (default)]" \
15 "(-6 --ipv6)"{-6,--ipv6}"[Show only IPv6 flows (default)]" \
16 "(-T --tcp)"{-T,--tcp}"[Show only TCP flows (default)]" \
17 "(-U --udp)"{-U,--udp}"[Show only UDP flows]" \
18 "(-D --dccp)"{-D,--dccp}"[Show only DCCP flows]" \
19 "(-I --icmp)"{-I,--icmp}"[Show only ICMP/ICMPv6 flows]" \
20 "(-S --sctp)"{-S,--sctp}"[Show only SCTP flows]" \
21 "(-n --no-dns)"{-n,--no-dns}"[Don't perform hostname lookup]" \
22 "(-G --no-geoip)"{-G,--no-geoip}"[Don't perform GeoIPlookup]" \
23 "(-s --show-src)"{-s,--show-src}"[Also show source, not only dest]" \
24 "(-b --bits)"{-b,--bits}"[Show rates in bits/s instead of bytes/s]" \
25 "(-u --update)"{-u,--update}"[Update GeoIP databases]" \
26 "(-t --interval)"{-t,--interval}"[Refresh time in seconds (def: 1s)]:interval:_gnu_generic" \
27 {-v,--version}"[Print version and exit]:" \
28 {-h,--help}"[Print help and exit]:" \
29 "*::args:_gnu_generic"