Fix bash auto-completion handling
Options having an argument impossible to auto-complete must be handled separately.
This commit is contained in:
parent
cba2501254
commit
4755b97908
1 changed files with 8 additions and 3 deletions
|
@ -116,20 +116,25 @@ _scrcpy() {
|
||||||
COMPREPLY=($(compgen -W "$("${ADB:-adb}" devices | awk '$2 == "device" {print $1}')" -- ${cur}))
|
COMPREPLY=($(compgen -W "$("${ADB:-adb}" devices | awk '$2 == "device" {print $1}')" -- ${cur}))
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
-b|--video-bit-rate \
|
--audio-bit-rate \
|
||||||
|--codec-options \
|
|--audio-buffer \
|
||||||
|
|-b|--video-bit-rate \
|
||||||
|
|--audio-codec-options \
|
||||||
|
|--audio-encoder \
|
||||||
|--crop \
|
|--crop \
|
||||||
|--display \
|
|--display \
|
||||||
|--display-buffer \
|
|--display-buffer \
|
||||||
|--encoder \
|
|
||||||
|--max-fps \
|
|--max-fps \
|
||||||
|-m|--max-size \
|
|-m|--max-size \
|
||||||
|-p|--port \
|
|-p|--port \
|
||||||
|--push-target \
|
|--push-target \
|
||||||
|
|--rotation \
|
||||||
|--tunnel-host \
|
|--tunnel-host \
|
||||||
|--tunnel-port \
|
|--tunnel-port \
|
||||||
|--v4l2-buffer \
|
|--v4l2-buffer \
|
||||||
|--v4l2-sink \
|
|--v4l2-sink \
|
||||||
|
|--video-codec-options \
|
||||||
|
|--video-encoder \
|
||||||
|--tcpip \
|
|--tcpip \
|
||||||
|--window-*)
|
|--window-*)
|
||||||
# Option accepting an argument, but nothing to auto-complete
|
# Option accepting an argument, but nothing to auto-complete
|
||||||
|
|
Loading…
Reference in a new issue