Skip to content

Commit

Permalink
Keep shared_ptr around
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Mar 15, 2022
1 parent 9c448b8 commit 0b9305f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/src/cli_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ TEST(cli, help_text)
{
CLI::App app("Test app");

addFlags(app);
auto opt = addFlags(app);
app.callback([opt](){});

app.formatter(std::make_shared<IgnitionFormatter>(&app));
std::cout << app.help();
Expand All @@ -151,7 +152,8 @@ TEST(cli, config_text)
{
CLI::App app("Test app");

addFlags(app);
auto opt = addFlags(app);
app.callback([opt](){});

std::vector<std::string> argv = {
"--int=50",
Expand Down

0 comments on commit 0b9305f

Please sign in to comment.