Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/fluree/server/command.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down