From cfd08bc485ca0fc89366b2d5c2064146ababb6c4 Mon Sep 17 00:00:00 2001 From: lars18th Date: Thu, 1 Feb 2018 10:45:47 +0100 Subject: [PATCH] apps: improve command line parameters --- apps/srt-file-transmit.cpp | 6 ++++-- apps/srt-live-transmit.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/srt-file-transmit.cpp b/apps/srt-file-transmit.cpp index 61190bf4d..a71c24d3b 100644 --- a/apps/srt-file-transmit.cpp +++ b/apps/srt-file-transmit.cpp @@ -61,12 +61,14 @@ int main( int argc, char** argv ) o_buffer = {"b", "buffer" }, o_verbose = {"v", "verbose" }, o_noflush = {"s", "skipflush" }, - o_fullstats = {"f", "full-stats" }; + o_fullstats = {"f", "fullstats" }; // Options that expect no arguments (ARG_NONE) need not be mentioned. vector optargs = { { o_loglevel, OptionScheme::ARG_ONE }, - { o_buffer, OptionScheme::ARG_ONE } + { o_buffer, OptionScheme::ARG_ONE }, + { o_noflush, OptionScheme::ARG_NONE }, + { o_fullstats, OptionScheme::ARG_NONE } }; options_t params = ProcessOptions(argv, argc, optargs); diff --git a/apps/srt-live-transmit.cpp b/apps/srt-live-transmit.cpp index 93fdb4c92..ead459c5c 100644 --- a/apps/srt-live-transmit.cpp +++ b/apps/srt-live-transmit.cpp @@ -247,13 +247,15 @@ int main( int argc, char** argv ) { cerr << "Usage: " << argv[0] << " [options] \n"; cerr << "\t-t: - connection timeout\n"; + cerr << "\t-d: - connection stop time\n"; cerr << "\t-c: - max size of data read in one step\n"; cerr << "\t-b: - set SRT bandwidth\n"; cerr << "\t-r: - bandwidth report frequency\n"; cerr << "\t-s: - frequency of status report\n"; + cerr << "\t-f - full counters in stats-report (prints total statistics)\n"; + cerr << "\t-S - skip flushing\n"; cerr << "\t-k - crash on error (aka developer mode)\n"; cerr << "\t-v - verbose mode (prints also size of every data packet passed)\n"; - cerr << "\t-f - full counters (prints total statistics without reset)\n"; return 1; } @@ -275,7 +277,7 @@ int main( int argc, char** argv ) string logfile = Option("", "logfile"); bool internal_log = Option("no", "loginternal") != "no"; bool skip_flushing = Option("no", "S", "skipflush") != "no"; - transmit_total_stats = Option("no", "f", "full-stats") != "no"; + transmit_total_stats = Option("no", "f", "fullstats") != "no"; // Options that require integer conversion unsigned long bandwidth;