From 79e435df554390e0a292869b5c43322f5b0029d3 Mon Sep 17 00:00:00 2001 From: Jacques Samain Date: Thu, 12 Oct 2017 15:02:13 +0200 Subject: Fixing the feature to download a given number of segments in http-dash-client Change-Id: I584d6480a5c22d9ea033efbe8f24c0c58b33004c Signed-off-by: Jacques Samain --- apps/http/icnet_http_dash_client.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +} -- cgit 1.2.3-korg