From 01c86544593f1cee557c8357996032f0089148d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=89=E5=B1=B1=20=E6=81=92=E5=A7=8B?= <51980852+sgtm0113@users.noreply.github.com> Date: Wed, 7 Sep 2022 16:45:24 +0900 Subject: [PATCH] fix completions for tcpdump (-w and -r option) (#9175) * fix completions for tcpdump (-r option) * fix completions for tcpdump (-w option) --- share/completions/tcpdump.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/tcpdump.fish b/share/completions/tcpdump.fish index e7050538f..1cb2a9d15 100644 --- a/share/completions/tcpdump.fish +++ b/share/completions/tcpdump.fish @@ -39,7 +39,7 @@ complete -c tcpdump -s O -l no-optimize -d 'Do not run the packet-matching code complete -c tcpdump -s p -l no-promiscuous-mode -d 'Don\'t put the interface into promiscuous mode' complete -c tcpdump -s Q -l direction -x -a 'in out inout' -d 'Choose direction for which packets should be captured' complete -c tcpdump -s q -d 'Print less protocol information' -complete -c tcpdump -s r -F -d 'Read packets from file' +complete -c tcpdump -s r -F -d 'Read packets from file' -r complete -c tcpdump -s S -l absolute-tcp-sequence-numbers -d 'Print absolute TCP sequence numbers' complete -c tcpdump -s s -l snapshot-length -x -d 'Snarf snaplen bytes of data from each packet' complete -c tcpdump -s T -x -d 'Force packets to be interpreted the specified type' @@ -54,7 +54,7 @@ complete -c tcpdump -s v -d 'Produce (slightly more) verbose output' complete -c tcpdump -o vv -d 'Even more verbose output' complete -c tcpdump -o vvv -d 'Even more verbose output' complete -c tcpdump -s V -F -d 'Read a list of filenames from file' -complete -c tcpdump -s w -F -d 'Write the raw packets to file' +complete -c tcpdump -s w -F -d 'Write the raw packets to file' -r complete -c tcpdump -s W -d 'Limit the number of files created' complete -c tcpdump -s x -d 'Print the data of each packet in hex (minus link level header)' complete -c tcpdump -o xx -d 'Print the data of each packet in hex (including link level header)'