Display and control your Android device
Fix options alphabetical order
Romain Vimontb8d43866d244
diff --git a/app/data/bash-completion/scrcpy b/app/data/bash-completion/scrcpyindex de298056..a44d38f5 100644--- a/app/data/bash-completion/scrcpy+++ b/app/data/bash-completion/scrcpy@@ -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-encodersdiff --git a/app/data/zsh-completion/_scrcpy b/app/data/zsh-completion/_scrcpyindex 17e30dc5..8d3426dc 100644--- a/app/data/zsh-completion/_scrcpy+++ b/app/data/zsh-completion/_scrcpy@@ -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]'diff --git a/app/src/cli.c b/app/src/cli.cindex eb784ebc..318a4230 100644--- a/app/src/cli.c+++ b/app/src/cli.c@@ -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",