mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Add usage message to rtp_generator.
Bug: webrtc:10616 Change-Id: Ia13b1e829063986be6b3b4a4b0c194dd4fea3511 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/146202 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28609}
This commit is contained in:
parent
857ad62721
commit
06cdb23644
2 changed files with 7 additions and 8 deletions
|
@ -182,6 +182,7 @@ if (!build_with_chromium) {
|
|||
"../test:video_test_common",
|
||||
"//third_party/abseil-cpp/absl/flags:flag",
|
||||
"//third_party/abseil-cpp/absl/flags:parse",
|
||||
"//third_party/abseil-cpp/absl/flags:usage",
|
||||
"//third_party/abseil-cpp/absl/memory",
|
||||
"//third_party/abseil-cpp/absl/strings",
|
||||
]
|
||||
|
|
|
@ -14,22 +14,20 @@
|
|||
|
||||
#include "absl/flags/flag.h"
|
||||
#include "absl/flags/parse.h"
|
||||
#include "absl/flags/usage.h"
|
||||
#include "rtc_tools/rtp_generator/rtp_generator.h"
|
||||
|
||||
ABSL_FLAG(std::string, input_config, "", "JSON file with config");
|
||||
ABSL_FLAG(std::string, output_rtpdump, "", "Where to store the rtpdump");
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
absl::SetProgramUsageMessage(
|
||||
"Generates custom configured rtpdumps for the purpose of testing.\n"
|
||||
"Example Usage:\n"
|
||||
"./rtp_generator --input_config=sender_config.json\n"
|
||||
" --output_rtpdump=my.rtpdump\n");
|
||||
absl::ParseCommandLine(argc, argv);
|
||||
|
||||
// TODO(bugs.webrtc.org/10616): Add program usage message when Abseil
|
||||
// flags supports it.
|
||||
// const std::string usage =
|
||||
// "Generates custom configured rtpdumps for the purpose of testing.\n"
|
||||
// "Example Usage:\n"
|
||||
// "./rtp_generator --input_config=sender_config.json\n"
|
||||
// " --output_rtpdump=my.rtpdump\n";
|
||||
|
||||
const std::string config_path = absl::GetFlag(FLAGS_input_config);
|
||||
const std::string rtp_dump_path = absl::GetFlag(FLAGS_output_rtpdump);
|
||||
|
||||
|
|
Loading…
Reference in a new issue