mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Factorize --list- options handling
This will limit code duplication as more list options will be added.
This commit is contained in:
parent
9d01140826
commit
986bceb269
8 changed files with 17 additions and 15 deletions
|
|
@ -1993,10 +1993,10 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
|||
return false;
|
||||
#endif
|
||||
case OPT_LIST_ENCODERS:
|
||||
opts->list_encoders = true;
|
||||
opts->list |= SC_OPTION_LIST_ENCODERS;
|
||||
break;
|
||||
case OPT_LIST_DISPLAYS:
|
||||
opts->list_displays = true;
|
||||
opts->list |= SC_OPTION_LIST_DISPLAYS;
|
||||
break;
|
||||
case OPT_REQUIRE_AUDIO:
|
||||
opts->require_audio = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue