Skip to content

Commit

Permalink
Define usage message for infrap4d
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Foster <derek.foster@intel.com>
  • Loading branch information
ffoulkes committed Nov 4, 2024
1 parent cbb1c0d commit 61c3d8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion infrap4d/infrap4d_main.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-2023 Intel Corporation
// Copyright 2022-2024 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

#include "absl/synchronization/notification.h"
Expand All @@ -14,7 +14,11 @@ extern "C" {
DEFINE_bool(detach, true, "Run infrap4d in detached mode");
DEFINE_bool(disable_krnlmon, false, "Run infrap4d without krnlmon support");

static const char kUsage[] = "P4Runtime server for P4 Control Plane.";

int main(int argc, char* argv[]) {
::gflags::SetUsageMessage(kUsage);

// Parse infrap4d command line
stratum::hal::tdi::ParseCommandLine(argc, argv, true);

Expand Down

0 comments on commit 61c3d8c

Please sign in to comment.