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:
terelius
2017-07-20 08:05:09 -07:00
committed by Commit Bot
parent ad908f877e
commit c4a5c14e8a

View File

@ -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;
}