trafgen: Fix compiler warnings
[netsniff-ng.git] / bpfc.zsh
blob04f04e7b6baa0cb3657bf333b309f4e9596828ca
1 #compdef bpfc
3 # bpfc.zsh -- zsh completion function for bpfc
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 "(-i --input)"{-i,--input}"[Berkeley Packet Filter file]:input:_files" \
15 "(-p --cpp)"{-p,--cpp}"[Run bpf program through C preprocessor]" \
16 "(-f --format)"{-f,--format}"[Output format]:output:(C netsniff-ng xt_bpf tcpdump)" \
17 "(-b --bypass)"{-b,--bypass}"[Bypass filter validation (e.g. for bug testing)]" \
18 "(-d --dump)"{-d,--dump}"[Dump supported instruction table]" \
19 "(-V --verbose)"{-V,--verbose}"[Be more verbose]" \
20 {-v,--version}"[Print version]:" \
21 {-h,--help}"[Print this help]:" \
22 "*::args:_gnu_generic"