From: Jacques Samain Date: Thu, 12 Oct 2017 13:02:13 +0000 (+0200) Subject: Fixing the feature to download a given number of segments in http-dash-client X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F8788%2F1;p=cicn.git Fixing the feature to download a given number of segments in http-dash-client Change-Id: I584d6480a5c22d9ea033efbe8f24c0c58b33004c Signed-off-by: Jacques Samain --- diff --git a/apps/http/icnet_http_dash_client.cc b/apps/http/icnet_http_dash_client.cc index f34b8503..49605020 100644 --- a/apps/http/icnet_http_dash_client.cc +++ b/apps/http/icnet_http_dash_client.cc @@ -22,7 +22,7 @@ namespace http { void usage(int argc, char **argv) { std::cout << "Usage:" << std::endl; - std::cout << argv[0] << " [-D] " << "[URL]" << std::endl; + std::cout << argv[0] << " [-D] [-n nbr_segments] " << "[URL]" << std::endl; exit(EXIT_FAILURE); } @@ -33,7 +33,7 @@ int main(int argc, char **argv) { bool daemon = false; int opt; - while ((opt = getopt(argc, argv, "Dh")) != -1) { + while ((opt = getopt(argc, argv, "Dn:h")) != -1) { switch (opt) { case 'D': daemon = true; @@ -81,4 +81,4 @@ int main(int argc, char **argv) { int main(int argc, char **argv) { return icnet::http::main(argc, argv); -} \ No newline at end of file +}