Suggest --record-format instead of -F on error

The short option -F has been deprecated by
ff061b4f30. On error, suggest the long
option --record-format instead.
This commit is contained in:
Romain Vimont 2021-06-20 20:57:52 +02:00
parent 1c95043478
commit 77e96d745b

View file

@ -962,7 +962,8 @@ scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]) {
if (opts->record_filename && !opts->record_format) {
opts->record_format = guess_record_format(opts->record_filename);
if (!opts->record_format) {
LOGE("No format specified for \"%s\" (try with -F mkv)",
LOGE("No format specified for \"%s\" "
"(try with --record-format=mkv)",
opts->record_filename);
return false;
}