Skip to content

Display and control your Android device

Fix --lock-video-orientation syntax in help

Romain Vimont5938e862a1c9
diff --git a/app/scrcpy.1 b/app/scrcpy.1
index 62dc9677..08adfc27 100644
--- a/app/scrcpy.1
+++ b/app/scrcpy.1
@@ -83,7 +83,7 @@ Inject computer clipboard text as a sequence of key events on Ctrl+v (like MOD+S
This is a workaround for some devices not behaving as expected when setting the device clipboard programmatically.
.TP
-.BI "\-\-lock\-video\-orientation " [value]
+.BI "\-\-lock\-video\-orientation[=value]
Lock video orientation to \fIvalue\fR. Possible values are "unlocked", "initial" (locked to the initial orientation), 0, 1, 2 and 3. Natural device orientation is 0, and each increment adds a 90 degrees otation counterclockwise.
Default is "unlocked".
diff --git a/app/src/cli.c b/app/src/cli.c
index 3eab8d27..ab35745d 100644
--- a/app/src/cli.c
+++ b/app/src/cli.c
@@ -79,7 +79,7 @@ scrcpy_print_usage(const char *arg0) {
" This is a workaround for some devices not behaving as\n"
" expected when setting the device clipboard programmatically.\n"
"\n"
- " --lock-video-orientation [value]\n"
+ " --lock-video-orientation[=value]\n"
" Lock video orientation to value.\n"
" Possible values are \"unlocked\", \"initial\" (locked to the\n"
" initial orientation), 0, 1, 2 and 3.\n"