From 570a003c39edc6e289695b0e97c064dcb8ba0b34 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sun, 7 Nov 2021 21:35:14 +0100 Subject: [PATCH] Remove deprecated -T option The short option -T is deprecated since v1.11. Only the long version (--always-on-top) remains. --- app/src/cli.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/cli.c b/app/src/cli.c index dbf6940b..45b87fb2 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -799,7 +799,7 @@ scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]) { optind = 0; // reset to start from the first argument in tests int c; - while ((c = getopt_long(argc, argv, "b:fF:hKm:nNp:r:s:StTvV:w", + while ((c = getopt_long(argc, argv, "b:fF:hKm:nNp:r:s:StvV:w", long_options, NULL)) != -1) { switch (c) { case 'b': @@ -871,9 +871,6 @@ scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]) { case 't': opts->show_touches = true; break; - case 'T': - LOGW("Deprecated option -T. Use --always-on-top instead."); - // fall through case OPT_ALWAYS_ON_TOP: opts->always_on_top = true; break;