3 # ifpps.zsh -- zsh completion function for ifpps
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.
14 _wanted interfaces expl
'network interface' \
16 _values
"Pseudo-device that captures on all interfaces" "any"
20 "(-d --dev)"{-d,--dev}"[Device to fetch statistics for i.e., eth0]:device:_interfaces" \
21 "(-p --promisc)"{-p,--promisc}"[Promiscuous mode]" \
22 "(-P --percentage)"{-P,--percentage}"[Show percentage of theoretical line rate]" \
23 "(-t --interval)"{-t,--interval}"[Refresh time in sec (default 1 s)]:interval:_gnu_generic" \
24 "(-n --num-cpus)"{-n,--num-cpus}"[Number of top hitter CPUs to display in ncurses mode (default 10)]" \
25 "(-C --csv)"{-C,--csv}"[Output to terminal as CSV E.g. post-processing with Gnuplot et al.]" \
26 "(-l --loop)"{-l,--loop}"[Loop terminal output]" \
27 "(-m --median)"{-m,--median}"[Display median values]" \
28 "(-W --no-warn)"{-W,--no-warn}"[Suppress warnings]" \
29 {-v,--version}"[Print version]:" \
30 {-h,--help}"[Print this help]:" \
31 "*::args:_gnu_generic"