Remove deprecated -T option
The short option -T is deprecated since v1.11. Only the long version (--always-on-top) remains.
This commit is contained in:
parent
b62df7ee91
commit
570a003c39
1 changed files with 1 additions and 4 deletions
|
@ -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
|
optind = 0; // reset to start from the first argument in tests
|
||||||
|
|
||||||
int c;
|
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) {
|
long_options, NULL)) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'b':
|
case 'b':
|
||||||
|
@ -871,9 +871,6 @@ scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]) {
|
||||||
case 't':
|
case 't':
|
||||||
opts->show_touches = true;
|
opts->show_touches = true;
|
||||||
break;
|
break;
|
||||||
case 'T':
|
|
||||||
LOGW("Deprecated option -T. Use --always-on-top instead.");
|
|
||||||
// fall through
|
|
||||||
case OPT_ALWAYS_ON_TOP:
|
case OPT_ALWAYS_ON_TOP:
|
||||||
opts->always_on_top = true;
|
opts->always_on_top = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue