Fix options alphabetical order
Renaming --display to --display-id broke the alphabetical order. Refs 23e116064dc97f2af843e764f13eebd54fab486d
This commit is contained in:
parent
4658c0e5d2
commit
0801cf0627
@ -19,8 +19,8 @@ _scrcpy() {
|
|||||||
--crop=
|
--crop=
|
||||||
-d --select-usb
|
-d --select-usb
|
||||||
--disable-screensaver
|
--disable-screensaver
|
||||||
--display-id=
|
|
||||||
--display-buffer=
|
--display-buffer=
|
||||||
|
--display-id=
|
||||||
-e --select-tcpip
|
-e --select-tcpip
|
||||||
-f --fullscreen
|
-f --fullscreen
|
||||||
--force-adb-forward
|
--force-adb-forward
|
||||||
|
@ -26,8 +26,8 @@ arguments=(
|
|||||||
'--crop=[\[width\:height\:x\:y\] Crop the device screen on the server]'
|
'--crop=[\[width\:height\:x\:y\] Crop the device screen on the server]'
|
||||||
{-d,--select-usb}'[Use USB device]'
|
{-d,--select-usb}'[Use USB device]'
|
||||||
'--disable-screensaver[Disable screensaver while scrcpy is running]'
|
'--disable-screensaver[Disable screensaver while scrcpy is running]'
|
||||||
'--display-id=[Specify the display id to mirror]'
|
|
||||||
'--display-buffer=[Add a buffering delay \(in milliseconds\) before displaying]'
|
'--display-buffer=[Add a buffering delay \(in milliseconds\) before displaying]'
|
||||||
|
'--display-id=[Specify the display id to mirror]'
|
||||||
{-e,--select-tcpip}'[Use TCP/IP device]'
|
{-e,--select-tcpip}'[Use TCP/IP device]'
|
||||||
{-f,--fullscreen}'[Start in fullscreen]'
|
{-f,--fullscreen}'[Start in fullscreen]'
|
||||||
'--force-adb-forward[Do not attempt to use \"adb reverse\" to connect to the device]'
|
'--force-adb-forward[Do not attempt to use \"adb reverse\" to connect to the device]'
|
||||||
|
12
app/scrcpy.1
12
app/scrcpy.1
@ -127,6 +127,12 @@ Also see \fB\-e\fR (\fB\-\-select\-tcpip\fR).
|
|||||||
.BI "\-\-disable-screensaver"
|
.BI "\-\-disable-screensaver"
|
||||||
Disable screensaver while scrcpy is running.
|
Disable screensaver while scrcpy is running.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BI "\-\-display\-buffer ms
|
||||||
|
Add a buffering delay (in milliseconds) before displaying. This increases latency to compensate for jitter.
|
||||||
|
|
||||||
|
Default is 0 (no buffering).
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.BI "\-\-display\-id " id
|
.BI "\-\-display\-id " id
|
||||||
Specify the device display id to mirror.
|
Specify the device display id to mirror.
|
||||||
@ -135,12 +141,6 @@ The available display ids can be listed by \fB\-\-list\-displays\fR.
|
|||||||
|
|
||||||
Default is 0.
|
Default is 0.
|
||||||
|
|
||||||
.TP
|
|
||||||
.BI "\-\-display\-buffer ms
|
|
||||||
Add a buffering delay (in milliseconds) before displaying. This increases latency to compensate for jitter.
|
|
||||||
|
|
||||||
Default is 0 (no buffering).
|
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B \-e, \-\-select\-tcpip
|
.B \-e, \-\-select\-tcpip
|
||||||
Use TCP/IP device (if there is exactly one, like adb -e).
|
Use TCP/IP device (if there is exactly one, like adb -e).
|
||||||
|
@ -292,6 +292,14 @@ static const struct sc_option options[] = {
|
|||||||
.longopt = "display",
|
.longopt = "display",
|
||||||
.argdesc = "id",
|
.argdesc = "id",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.longopt_id = OPT_DISPLAY_BUFFER,
|
||||||
|
.longopt = "display-buffer",
|
||||||
|
.argdesc = "ms",
|
||||||
|
.text = "Add a buffering delay (in milliseconds) before displaying. "
|
||||||
|
"This increases latency to compensate for jitter.\n"
|
||||||
|
"Default is 0 (no buffering).",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.longopt_id = OPT_DISPLAY_ID,
|
.longopt_id = OPT_DISPLAY_ID,
|
||||||
.longopt = "display-id",
|
.longopt = "display-id",
|
||||||
@ -301,14 +309,6 @@ static const struct sc_option options[] = {
|
|||||||
" scrcpy --list-displays\n"
|
" scrcpy --list-displays\n"
|
||||||
"Default is 0.",
|
"Default is 0.",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
.longopt_id = OPT_DISPLAY_BUFFER,
|
|
||||||
.longopt = "display-buffer",
|
|
||||||
.argdesc = "ms",
|
|
||||||
.text = "Add a buffering delay (in milliseconds) before displaying. "
|
|
||||||
"This increases latency to compensate for jitter.\n"
|
|
||||||
"Default is 0 (no buffering).",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
.shortopt = 'e',
|
.shortopt = 'e',
|
||||||
.longopt = "select-tcpip",
|
.longopt = "select-tcpip",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user