ifpps: Add __noreturn attribute to exiting functions
[netsniff-ng.git] / ifpps.zsh
bloba4a4a5d9486ff0ea943da84807a80ec2d244ff46
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 "(-c --term)"{-c,--term}"[Output to terminal]" \
24 "(-C --csv)"{-C,--csv}"[Output to terminal as CSV E.g. post-processing with Gnuplot et al.]" \
25 "(-H --csv-tablehead)"{-H,--csv-tablehead}"[Print CSV table head]" \
26 "(-l --loop)"{-l,--loop}"[Loop terminal output]" \
27 {-v,--version}"[Print version]:" \
28 {-h,--help}"[Print this help]:" \
29 "*::args:_gnu_generic"