mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-02 22:29:25 +00:00
Add -s auto-complete option
Add -s auto-complete option.
This commit is contained in:
parent
72ba913324
commit
c8407abdf6
1 changed files with 5 additions and 1 deletions
|
@ -93,6 +93,11 @@ _scrcpy() {
|
||||||
COMPREPLY=($(compgen -W 'verbose debug info warn error' -- "$cur"))
|
COMPREPLY=($(compgen -W 'verbose debug info warn error' -- "$cur"))
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
-s|--serial)
|
||||||
|
# Use 'adb devices' to list serial numbers.
|
||||||
|
COMPREPLY=($(compgen -W "$(adb devices | awk '/(device|recovery|sideload)$/{print $1}')" -- ${cur} ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
-b|--bitrate \
|
-b|--bitrate \
|
||||||
|--codec-options \
|
|--codec-options \
|
||||||
|--crop \
|
|--crop \
|
||||||
|
@ -103,7 +108,6 @@ _scrcpy() {
|
||||||
|-m|--max-size \
|
|-m|--max-size \
|
||||||
|-p|--port \
|
|-p|--port \
|
||||||
|--push-target \
|
|--push-target \
|
||||||
|-s|--serial \
|
|
||||||
|--tunnel-host \
|
|--tunnel-host \
|
||||||
|--tunnel-port \
|
|--tunnel-port \
|
||||||
|--v4l2-buffer \
|
|--v4l2-buffer \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue