From 79ed83ab687a848efaddbfbfd195d4252158fe8d Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 22 Feb 2022 18:10:30 +0100 Subject: [PATCH] Reorder --tcpip option in cli To keep options in alphabetic order. --- app/src/cli.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/app/src/cli.c b/app/src/cli.c index 48289678..a4f79840 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -422,6 +422,20 @@ static const struct sc_option options[] = { "on exit.\n" "It only shows physical touches (not clicks from scrcpy).", }, + { + .longopt_id = OPT_TCPIP, + .longopt = "tcpip", + .argdesc = "ip[:port]", + .optional_arg = true, + .text = "Configure and reconnect the device over TCP/IP.\n" + "If a destination address is provided, then scrcpy connects to " + "this address before starting. The device must listen on the " + "given TCP port (default is 5555).\n" + "If no destination address is provided, then scrcpy attempts " + "to find the IP address of the current device (typically " + "connected over USB), enables TCP/IP mode, then connects to " + "this address before starting.", + }, { .longopt_id = OPT_TUNNEL_HOST, .longopt = "tunnel-host", @@ -483,20 +497,6 @@ static const struct sc_option options[] = { .text = "Keep the device on while scrcpy is running, when the device " "is plugged in.", }, - { - .longopt_id = OPT_TCPIP, - .longopt = "tcpip", - .argdesc = "ip[:port]", - .optional_arg = true, - .text = "Configure and reconnect the device over TCP/IP.\n" - "If a destination address is provided, then scrcpy connects to " - "this address before starting. The device must listen on the " - "given TCP port (default is 5555).\n" - "If no destination address is provided, then scrcpy attempts " - "to find the IP address of the current device (typically " - "connected over USB), enables TCP/IP mode, then connects to " - "this address before starting.", - }, { .longopt_id = OPT_WINDOW_BORDERLESS, .longopt = "window-borderless",