Fix options alphabetical order

Commit fc52b24503 missed this one.
pr4075
Romain Vimont 12 months ago
parent 2d79aeb117
commit b8d43866d2

@ -19,8 +19,8 @@ _scrcpy() {
-f --fullscreen
--force-adb-forward
--forward-all-clicks
-K --hid-keyboard
-h --help
-K --hid-keyboard
--legacy-paste
--list-displays
--list-encoders

@ -26,8 +26,8 @@ arguments=(
{-f,--fullscreen}'[Start in fullscreen]'
'--force-adb-forward[Do not attempt to use \"adb reverse\" to connect to the device]'
'--forward-all-clicks[Forward clicks to device]'
{-K,--hid-keyboard}'[Simulate a physical keyboard by using HID over AOAv2]'
{-h,--help}'[Print the help]'
{-K,--hid-keyboard}'[Simulate a physical keyboard by using HID over AOAv2]'
'--legacy-paste[Inject computer clipboard text as a sequence of key events on Ctrl+v]'
'--list-displays[List displays available on the device]'
'--list-encoders[List video and audio encoders available on the device]'

@ -275,6 +275,11 @@ static const struct sc_option options[] = {
"middle-click triggers HOME. This option disables these "
"shortcuts and forwards the clicks to the device instead.",
},
{
.shortopt = 'h',
.longopt = "help",
.text = "Print this help.",
},
{
.shortopt = 'K',
.longopt = "hid-keyboard",
@ -292,11 +297,6 @@ static const struct sc_option options[] = {
"is enabled (or a physical keyboard is connected).\n"
"Also see --hid-mouse.",
},
{
.shortopt = 'h',
.longopt = "help",
.text = "Print this help.",
},
{
.longopt_id = OPT_LEGACY_PASTE,
.longopt = "legacy-paste",

Loading…
Cancel
Save