Make --lock-video-orientation argument optional

If the option is set without argument, lock the initial device
orientation (as if the value "initial" was passed).
This commit is contained in:
Romain Vimont
2021-04-19 18:40:48 +02:00
parent fd0dc6c0cd
commit 5af9d0ee0f
3 changed files with 9 additions and 5 deletions

View File

@@ -198,7 +198,7 @@ If `--max-size` is also specified, resizing is applied after cropping.
To lock the orientation of the mirroring:
```bash
scrcpy --lock-video-orientation initial # initial (current) orientation
scrcpy --lock-video-orientation # initial (current) orientation
scrcpy --lock-video-orientation 0 # natural orientation
scrcpy --lock-video-orientation 1 # 90° counterclockwise
scrcpy --lock-video-orientation 2 # 180°