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))