summaryrefslogtreecommitdiff
path: root/bpfc.zsh
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-12-17 13:41:05 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-12-17 13:42:12 +0100
commit205ca73cd1b724795f7ec295e85fbb50cbbb430b (patch)
tree549427b56ab0086937a5114c911052c47b6a64c0 /bpfc.zsh
parent6a95717c07d4b453531ebe52f55c6dcfa520dc80 (diff)
zsh: bpfc: Add completion for -D/--define
Add zsh completion for -D/--define command line option added in commit 121119215276 ("bpfc: Add option to pass macro/define for C preprocessor") Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'bpfc.zsh')
-rw-r--r--bpfc.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bpfc.zsh b/bpfc.zsh
index 2685bad..63c54e0 100644
--- a/bpfc.zsh
+++ b/bpfc.zsh
@@ -13,6 +13,7 @@ typeset -A opt_args
_arguments -s -S \
"(-i --input)"{-i,--input}"[Berkeley Packet Filter file]:input:_files" \
"(-p --cpp)"{-p,--cpp}"[Run bpf program through C preprocessor]" \
+ "(-D --define)"{-D,--define}"[Add macro definition for the C preprocessor]::" \
"(-f --format)"{-f,--format}"[Output format]:output:(C netsniff-ng xt_bpf tcpdump)" \
"(-b --bypass)"{-b,--bypass}"[Bypass filter validation (e.g. for bug testing)]" \
"(-d --dump)"{-d,--dump}"[Dump supported instruction table]" \