From 9cda1b3ce2cc16c9d1d5d2c628489051baf263a1 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Thu, 9 Jan 2025 18:27:02 -0800 Subject: [PATCH] cli_TEST: print help to fix nodiscard warning Signed-off-by: Steve Peters --- cli/src/cli_TEST.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cli_TEST.cc b/cli/src/cli_TEST.cc index 6023790..71b0144 100644 --- a/cli/src/cli_TEST.cc +++ b/cli/src/cli_TEST.cc @@ -131,7 +131,7 @@ TEST(cli, options) }); app.formatter(std::make_shared(&app)); - EXPECT_NO_THROW(app.help()); + EXPECT_NO_THROW(std::cout << app.help()); EXPECT_NO_THROW(app.parse(argv)); }