From dddd63c66be7dc529e01335a751b720a991cfba6 Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Fri, 25 Jul 2025 14:31:47 +0000 Subject: [PATCH] exit() gracefully in example when --help is used Using --help should not be an exceptional case. Instead it is always valid to use. --- score/mw/com/example/ipc_bridge/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/score/mw/com/example/ipc_bridge/main.cpp b/score/mw/com/example/ipc_bridge/main.cpp index 3fb4a3b8..314bd56c 100644 --- a/score/mw/com/example/ipc_bridge/main.cpp +++ b/score/mw/com/example/ipc_bridge/main.cpp @@ -11,7 +11,6 @@ * SPDX-License-Identifier: Apache-2.0 ********************************************************************************/ #include "assert_handler.h" -#include "score/mw/com/impl/instance_specifier.h" #include "sample_sender_receiver.h" #include @@ -72,7 +71,7 @@ Params ParseCommandLineArguments(const int argc, const char** argv) if (args.count("help") > 0U) { std::cerr << options << std::endl; - throw std::runtime_error("Could not parse command line arguments"); + std::exit(EXIT_SUCCESS); } return {GetValueIfProvided(args, "mode"),