From 4d2e4821029bb4dff798af9bae41a12b3c83bc31 Mon Sep 17 00:00:00 2001 From: tbohdans Date: Sat, 27 Dec 2025 10:48:40 +0200 Subject: [PATCH] Preprocessing CLI arguments fix --- src/fluree/server/command.clj | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/fluree/server/command.clj b/src/fluree/server/command.clj index feae4d3..ef73f41 100644 --- a/src/fluree/server/command.clj +++ b/src/fluree/server/command.clj @@ -43,9 +43,21 @@ (println message) (System/exit status)) + +(defn preprocess-args [args] + (mapcat (fn [arg] + (if (and (string? arg) + (.startsWith arg "--") + (.contains arg "=")) + (let [[k v] (.split arg "=" 2)] + [k v]) + [arg])) + args)) + (defn parse [args] (-> args + preprocess-args (cli/parse-opts cli-options) validate-opts))