Print general usage information for event_log_analyzer
Print general usage information for event_log_analyzer (in addition to listing the command line flags) when called with '--help'. BUG=None Review-Url: https://codereview.webrtc.org/2986573002 Cr-Commit-Position: refs/heads/master@{#19104}
This commit is contained in:
@ -103,14 +103,11 @@ int main(int argc, char* argv[]) {
|
||||
program_name + " <logfile> | python\n" + "Run " + program_name +
|
||||
" --help for a list of command line options\n";
|
||||
rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, true);
|
||||
if (FLAG_help) {
|
||||
rtc::FlagList::Print(nullptr, false);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (argc != 2) {
|
||||
if (argc != 2 || FLAG_help) {
|
||||
// Print usage information.
|
||||
std::cout << usage;
|
||||
if (FLAG_help)
|
||||
rtc::FlagList::Print(nullptr, false);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user