trafgen: fix NULL pointer dereference in -i option parsing
[netsniff-ng-new.git] / bpfc.zsh
blob63c54e0be6355711559713f061d4a04dae0aed22
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 "(-D --define)"{-D,--define}"[Add macro definition for the C preprocessor]::" \
17 "(-f --format)"{-f,--format}"[Output format]:output:(C netsniff-ng xt_bpf tcpdump)" \
18 "(-b --bypass)"{-b,--bypass}"[Bypass filter validation (e.g. for bug testing)]" \
19 "(-d --dump)"{-d,--dump}"[Dump supported instruction table]" \
20 "(-V --verbose)"{-V,--verbose}"[Be more verbose]" \
21 {-v,--version}"[Print version and exit]:" \
22 {-h,--help}"[Print help and exit]:" \
23 "*::args:_gnu_generic"