From 77e96d745b0243323fc4cacec0081da062d2506f Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sun, 20 Jun 2021 20:57:52 +0200 Subject: [PATCH] Suggest --record-format instead of -F on error The short option -F has been deprecated by ff061b4f30c54dedc5073a588c6c697477b805db. On error, suggest the long option --record-format instead. --- app/src/cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/cli.c b/app/src/cli.c index 4c1fbb2f..3eab8d27 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -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; }