Index: net/tools/quic/quic_packet_printer_bin.cc |
diff --git a/net/tools/quic/quic_packet_printer_bin.cc b/net/tools/quic/quic_packet_printer_bin.cc |
index b2277291eaec57a5a2609d12396655c6811fe978..a19b679b735677106786c010d91b408b2b862b4b 100644 |
--- a/net/tools/quic/quic_packet_printer_bin.cc |
+++ b/net/tools/quic/quic_packet_printer_bin.cc |
@@ -9,7 +9,7 @@ |
// Otherwise it will dump the public header, and fail with an error that the |
// packet is undecryptable. |
// |
-// Usage: quic_packet_printer [server|client] [hex dump of packet] |
+// Usage: quic_packet_printer server|client <hex dump of packet> |
// |
// Example input: |
// quic_packet_printer server 0c6b810308320f24c004a939a38a2e3fd6ca589917f200400 |
@@ -162,8 +162,9 @@ int main(int argc, char* argv[]) { |
base::CommandLine* line = base::CommandLine::ForCurrentProcess(); |
const base::CommandLine::StringVector& args = line->GetArgs(); |
- if (args.size() != 2) { |
- cerr << "Usage: " << argv[0] << " client|server <hex>\n"; |
+ if (args.size() != 3) { |
+ cerr << "Missing argument " << argc << ". (Usage: " << argv[0] |
+ << " client|server <hex>\n"; |
return 1; |
} |