configure: silent complaint if not built on git repository
[netsniff-ng.git] / ifpps.zsh
blob83de1538d9914be421bdd87f282c08ea4695d516
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 "(-t --interval)"{-t,--interval}"[Refresh time in sec (default 1 s)]:interval:_gnu_generic" \
23 "(-n --num-cpus)"{-n,--num-cpus}"[Number of top hitter CPUs to display in ncurses mode (default 10)]" \
24 "(-C --csv)"{-C,--csv}"[Output to terminal as CSV E.g. post-processing with Gnuplot et al.]" \
25 "(-l --loop)"{-l,--loop}"[Loop terminal output]" \
26 "(-m --median)"{-m,--median}"[Display median values]" \
27 "(-W --no-warn)"{-W,--no-warn}"[Suppress warnings]" \
28 {-v,--version}"[Print version]:" \
29 {-h,--help}"[Print this help]:" \
30 "*::args:_gnu_generic"