completions wireshark: removed wrong interface completion for -I option (#9440)

Wireshark completions for -I were wrong, since it doesn't take the network interface directly. It must still be specified with -i.
This commit is contained in:
Jannik Vieten 2023-01-02 17:45:25 +01:00 committed by GitHub
parent 550857ef65
commit 2357c9f577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ packets:\t"Switch to the next file after it contains N packets"'
complete -c $shark -s i -ra '(__fish_wireshark_interface)'
complete -c $shark -s i -ra '-\t"Capture from standard input"' \
-d 'Network interface or pipe to use for live packet capture'
complete -c $shark -s I -l monitor-mode -d 'Put the interface in "monitor mode"' -xa '(__fish_wireshark_interface)'
complete -c $shark -s I -l monitor-mode -d 'Put the interface in "monitor mode"'
complete -c $shark -s L -l list-data-link-types -d 'List the data link types supported by the interface and exit'
complete -c $shark -l list-time-stamp-types -d 'List time stamp types supported for the interface'
complete -c $shark -s p -l no-promiscuous-mode -d "Don't put the interface into promiscuous mode"