diff options
author | Jacques Samain <jsamain+fdio@cisco.com> | 2017-10-12 15:02:13 +0200 |
---|---|---|
committer | Jacques Samain <jsamain+fdio@cisco.com> | 2017-10-12 15:02:13 +0200 |
commit | 79e435df554390e0a292869b5c43322f5b0029d3 (patch) | |
tree | dece455ac9a5affbbf19352c503a984370706699 | |
parent | 9feade6d7afdfb1075877e6e098e64550351b333 (diff) |
Fixing the feature to download a given number of segments in http-dash-client
Change-Id: I584d6480a5c22d9ea033efbe8f24c0c58b33004c
Signed-off-by: Jacques Samain <jsamain+fdio@cisco.com>
-rw-r--r-- | apps/http/icnet_http_dash_client.cc | 6 |
1 files 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 +} |