From 4a692c08f4356b01f44d8ac33d866cc9a007390e Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Fri, 20 Mar 2026 13:01:38 -0400 Subject: [PATCH] fix(stroid): exit properly after stroid -v previously calling stroid -v would print the version but then continue on the default run case, now both -v and -d result in an immediate exit after their tasks are done --- tools/stroid.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/stroid.cpp b/tools/stroid.cpp index 81df116..e1cd2b8 100644 --- a/tools/stroid.cpp +++ b/tools/stroid.cpp @@ -112,11 +112,13 @@ int main(int argc, char** argv) { info->add_flag_callback("-v,--version", []() { std::println("Stroid Version {}", stroid::version::toString()); + exit(0); }, "Display stroid version information"); info->add_flag_callback("-d,--default", [&cfg]() { cfg.save("default.toml"); std::println("Default configuration saved to default.toml"); + exit(0); }, "Save the default configuration to default.toml"); try {