| Index: net/tools/quic/quic_client_bin.cc
|
| diff --git a/net/tools/quic/quic_client_bin.cc b/net/tools/quic/quic_client_bin.cc
|
| index f743a7dc127213e78a79078b2fb0db7e4395c126..b9ea9153a202a81a3b7e546b1f798d061e7a2ba2 100644
|
| --- a/net/tools/quic/quic_client_bin.cc
|
| +++ b/net/tools/quic/quic_client_bin.cc
|
| @@ -44,15 +44,18 @@ bool FLAGS_secure = false;
|
| int main(int argc, char *argv[]) {
|
| base::CommandLine::Init(argc, argv);
|
| base::CommandLine* line = base::CommandLine::ForCurrentProcess();
|
| + const base::CommandLine::StringVector& urls = line->GetArgs();
|
|
|
| logging::LoggingSettings settings;
|
| settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
|
| CHECK(logging::InitLogging(settings));
|
|
|
| - if (line->HasSwitch("h") || line->HasSwitch("help")) {
|
| + if (line->HasSwitch("h") || line->HasSwitch("help") || urls.empty()) {
|
| const char* help_str =
|
| - "Usage: quic_client [options]\n"
|
| + "Usage: quic_client [options] <url> ...\n"
|
| "\n"
|
| + "At least one <url> with scheme must be provided "
|
| + "(e.g. http://www.google.com/)\n\n"
|
| "Options:\n"
|
| "-h, --help show this help message and exit\n"
|
| "--port=<port> specify the port to connect to\n"
|
| @@ -108,6 +111,6 @@ int main(int argc, char *argv[]) {
|
|
|
| if (!client.Connect()) return 1;
|
|
|
| - client.SendRequestsAndWaitForResponse(line->GetArgs());
|
| + client.SendRequestsAndWaitForResponse(urls);
|
| return 0;
|
| }
|
|
|