netsniff-ng: proto_ipv4: Fix typo in comment
[netsniff-ng.git] / ifpps.zsh
bloba1b3dd482d80a5eb65f74e3ee7ea73a593810c5d
1 #compdef ifpps
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.
11 typeset -A opt_args
13 _interfaces () {
14 _wanted interfaces expl 'network interface' \
15 _net_interfaces
16 _values "Pseudo-device that captures on all interfaces" "any"
19 _arguments -s -S \
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 "(-o --omit-header)"{-o,--omit-header}"[Do not print the CSV header]" \
28 "(-m --median)"{-m,--median}"[Display median values]" \
29 "(-W --no-warn)"{-W,--no-warn}"[Suppress warnings]" \
30 {-v,--version}"[Print version and exit]:" \
31 {-h,--help}"[Print help and exit]:" \
32 "*::args:_gnu_generic"