blob: 0ac287037747e41299048726e7bc0c8bc0a51871 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gflags/gflags.h"
#include "src/bin/test_app/test_app.h"
#include "src/logging.h"
int main(int argc, char* argv[]) {
google::SetUsageMessage(
"Cobalt test client application.\n"
"There are three modes of operation controlled by the -mode flag:\n"
"interactive: The program runs an interactive command-loop.\n"
"send-once: The program sends a single Envelope described by the flags.\n"
"automatic: The program runs forever sending many Envelopes with "
"randomly generated values.");
google::ParseCommandLineFlags(&argc, &argv, true);
INIT_LOGGING(argv[0]);
auto app = cobalt::TestApp::CreateFromFlagsOrDie(argv);
app->Run();
exit(0);
}