Fix options alphabetical order

Commit fc52b24503 missed this one.
This commit is contained in:
Romain Vimont 2023-06-05 19:44:15 +02:00
parent 2d79aeb117
commit b8d43866d2
3 changed files with 7 additions and 7 deletions

View file

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

View file

@ -26,8 +26,8 @@ arguments=(
{-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]'
'--forward-all-clicks[Forward clicks to 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]' {-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]' '--legacy-paste[Inject computer clipboard text as a sequence of key events on Ctrl+v]'
'--list-displays[List displays available on the device]' '--list-displays[List displays available on the device]'
'--list-encoders[List video and audio encoders available on the device]' '--list-encoders[List video and audio encoders available on the device]'

View file

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