Suggest commands with an explicit '='

This commit is contained in:
Romain Vimont 2023-02-19 15:30:46 +01:00
parent 5cf86ef7ff
commit d5dff239c8

View file

@ -306,7 +306,7 @@ public final class Server {
if (displayIds != null && displayIds.length > 0) { if (displayIds != null && displayIds.length > 0) {
Ln.e("Try to use one of the available display ids:"); Ln.e("Try to use one of the available display ids:");
for (int id : displayIds) { for (int id : displayIds) {
Ln.e(" scrcpy --display " + id); Ln.e(" scrcpy --display=" + id);
} }
} }
} else if (e instanceof InvalidEncoderException) { } else if (e instanceof InvalidEncoderException) {
@ -315,7 +315,7 @@ public final class Server {
if (encoders != null && encoders.length > 0) { if (encoders != null && encoders.length > 0) {
Ln.e("Try to use one of the available encoders:"); Ln.e("Try to use one of the available encoders:");
for (MediaCodecInfo encoder : encoders) { for (MediaCodecInfo encoder : encoders) {
Ln.e(" scrcpy --encoder '" + encoder.getName() + "'"); Ln.e(" scrcpy --encoder='" + encoder.getName() + "'");
} }
} }
} }