Skip to content

Commit

Permalink
[#42] Powershell CLI parsing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Apr 11, 2021
1 parent bc27279 commit 76f5826
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/borkdude/deps.clj
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ For more info, see:
acc {:mode :repl}]
(if command-line-args
(let [arg (first command-line-args)
[arg command-line-args]
;; workaround for Powershell
(if (and windows? (#{"-X:" "-M:" "-A:"} arg))
[(str arg (first command-line-args))
(rest command-line-args)]
[arg command-line-args])
bool-opt-keyword (get bool-opts->keyword arg)
string-opt-keyword (get string-opts->keyword arg)]
(cond
Expand Down

0 comments on commit 76f5826

Please sign in to comment.