From e771913059deeac6d2f562ce8488d392375355d9 Mon Sep 17 00:00:00 2001 From: Richard Ward Date: Fri, 19 Dec 2025 03:07:22 +0000 Subject: [PATCH] better help --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 47fd503..3003b19 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -144,17 +144,16 @@ AppOptions ParseCommandLine(int argc, char** argv) { app.add_option("-s,--create-seed-json", seedOutputText, "Write a template runtime JSON file"); auto* setDefaultJsonOption = app.add_option( - "--set-default-json", setDefaultJsonPath, + "--set-default-json [PATH]", setDefaultJsonPath, "Persist the runtime JSON to the platform default location (XDG/APPDATA); " - "pass a path to copy that JSON"); + "optionally pass PATH to copy that JSON"); setDefaultJsonOption->type_name("PATH"); setDefaultJsonOption->type_size(0, 1); try { app.parse(argc, argv); } catch (const CLI::ParseError& e) { - app.exit(e); - throw; + std::exit(app.exit(e)); } bool shouldSaveDefault = setDefaultJsonOption->count() > 0;