Don't print the request when there's only one.

Bug: 500845363
Change-Id: Id348959197487bf5d77a7ea9143132056a6a6964
Reviewed-on: https://gn-review.googlesource.com/c/gn/+/22360
Commit-Queue: Matt Stark <msta@google.com>
Reviewed-by: Takuto Ikuta <tikuta@google.com>
diff --git a/src/gn/command_suggest.cc b/src/gn/command_suggest.cc
index 9550974..0427e49 100644
--- a/src/gn/command_suggest.cc
+++ b/src/gn/command_suggest.cc
@@ -393,11 +393,16 @@
     const auto& includer = pair[0];
     const auto& included = pair[1];
 
-    OutputString("Request: ", TextDecoration::DECORATION_MAGENTA);
-    OutputQuoted(includer);
-    OutputString(" wants to depend on ");
-    OutputQuoted(included);
-    OutputString(":\n");
+    // args[0] = output directory.
+    // If there's only one request, don't print which request this corresponds
+    // to.
+    if (args.size() > 2) {
+      OutputString("Request: ", TextDecoration::DECORATION_MAGENTA);
+      OutputQuoted(includer);
+      OutputString(" wants to depend on ");
+      OutputQuoted(included);
+      OutputString(":\n");
+    }
 
     success &= OutputSuggestions(all_targets, setup, includer, included);
   }