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",